9.112 __fabs intrinsic

This intrinsic inserts a VABS instruction or an equivalent code sequence into the instruction stream generated by the compiler. It enables you to obtain the absolute value of a double-precision floating-point value from within your C or C++ code.


The __fabs intrinsic is an analog of the standard C library function fabs(). It differs from the standard library function in that a call to __fabs is guaranteed to be compiled into a single, inline, machine instruction on an ARM architecture-based processor equipped with a VFP coprocessor.


double __fabs(double val)
is a double-precision floating-point value.

Return value

The __fabs intrinsic returns the absolute value of val as a double.
Related reference
9.113 __fabsf intrinsic
Related information
VABS (floating-point)
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.