04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Compiler-specific Features<br />

Syntax<br />

void __enable_irq(void)<br />

Restrictions<br />

The __enable_irq intrinsic can only be executed in privileged modes, that is, in non user<br />

modes. In User mode this intrinsic does not change the interrupt flags in the CPSR.<br />

See also<br />

• __disable_irq on page 4-80.<br />

4.7.11 __fabs<br />

This intrinsic inserts a VABS instruction or an equivalent code sequence into the<br />

instruction stream generated by the compiler. It enables you to obtain the absolute value<br />

of a double-precision floating-point value from within your C or C++ code.<br />

Note<br />

The __fabs intrinsic is an analogue of the standard C library function fabs. It differs<br />

from the standard library function in that a call to __fabs is guaranteed to be compiled<br />

into a single, inline, machine instruction on an <strong>ARM</strong> architecture-based processor<br />

equipped with a VFP coprocessor.<br />

Syntax<br />

double __fabs(double val)<br />

Where:<br />

val<br />

is a double-precision floating-point value.<br />

Return value<br />

The __fabs intrinsic returns the absolute value of val as a double.<br />

See also<br />

• __fabsf on page 4-84<br />

• VABS, VNEG, and VSQRT on page 5-95 in the Assembler Guide.<br />

<strong>ARM</strong> DUI 0348C Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. 4-83<br />

ID101213<br />

Non-Confidential,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!