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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Compiler-specific Features<br />

4.7.12 __fabsf<br />

This intrinsic is a single-precision version of the __fabs intrinsic. It is functionally<br />

equivalent to __fabs, except that:<br />

• it takes an argument of type float instead of an argument of type double<br />

• it returns a float value instead of a double value.<br />

See also<br />

• __fabs on page 4-83<br />

• V{Q}ABS and V{Q}NEG on page 5-56 in the Assembler Guide.<br />

4.7.13 __force_stores<br />

This intrinsic causes all variables that are visible outside the current function, such as<br />

variables that have pointers to them passed into or out of the function, to be written back<br />

to memory if they have been changed.<br />

This intrinsic also acts as a scheduling barrier.<br />

Syntax<br />

void __force_stores(void)<br />

See also<br />

• __memory_changed on page 4-88<br />

• __schedule_barrier on page 4-96.<br />

4.7.14 __ldrex<br />

This intrinsic inserts an instruction of the form LDREX[size] into the instruction stream<br />

generated by the compiler. It enables you to load data from memory in your C or C++<br />

code using an LDREX instruction. size in LDREX[size] is B for byte stores or H for halfword<br />

stores. If no size is specified, word stores are performed.<br />

Syntax<br />

unsigned int __ldrex(volatile void *ptr)<br />

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

Non-Confidential,<br />

ID101213

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

Saved successfully!

Ooh no, something went wrong!