29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

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.

<strong>Compiler</strong>-specific Features<br />

• BKPT on page 4-129 in the Assembler <strong>Guide</strong><br />

• SVC on page 4-130 in the Assembler <strong>Guide</strong><br />

• Appendix A Semihosting in the Developer <strong>Guide</strong>.<br />

4.7.35 __sev<br />

This intrinsic inserts a SEV instruction into the instruction stream generated by the<br />

compiler.<br />

Syntax<br />

void __sev(void)<br />

Errors<br />

The compiler does not recognize the __sev intrinsic when compiling for a target that<br />

does not support the SEV instruction. The compiler generates either a warning or an error<br />

in this case.<br />

See also<br />

• __nop on page 4-78<br />

• __wfe on page 4-94<br />

• __wfi on page 4-94<br />

• __yield on page 4-95<br />

• NOP, SEV, WFE, WFI, and YIELD on page 4-139 in the Assembler <strong>Guide</strong>.<br />

4.7.36 __sqrt<br />

This intrinsic inserts a VFP VSQRT instruction into the instruction stream generated by<br />

the compiler. It enables you to obtain the square root of a double-precision<br />

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

Note<br />

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

from the standard library function in that a call to __sqrt 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 __sqrt(double val)<br />

<strong>ARM</strong> DUI 0348A Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. 4-87<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!