Skip to main content

IAR Embedded Workbench for RISC-V 3.40

__fp_absNN

In this section:
Syntax
float __fp_abs32(float);
double __fp_abs64(double);
Description

Returns the absolute value (the original value with the sign bit cleared). When a compatible FPU is available, this is done using the instruction fabs.s (32-bit FPU) or fabs.d (64-bit FPU). If no compatible FPU is available, a pair of shift instructions is used instead.

Note

To use intrinsic functions in an application, you must include the header file(s) where they are declared, see Summary of intrinsic functions.