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 />

opcode2<br />

Is a coprocessor-specific opcode.<br />

Usage<br />

The use of these instructions depends on the coprocessor. See your coprocessor<br />

documentation for more information.<br />

See also<br />

• CDP and CDP2 on page 4-124 in the Assembler Guide.<br />

4.7.3 __clrex<br />

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

compiler. It enables you to include a CLREX instruction in your C or C++ code.<br />

Syntax<br />

void __clrex(void)<br />

Errors<br />

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

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

error in this case.<br />

See also<br />

• CLREX on page 4-39 in the Assembler Guide.<br />

4.7.4 __clz<br />

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

instruction stream generated by the compiler. It enables you to count the number of<br />

leading zeros of a data value in your C or C++ code.<br />

Syntax<br />

unsigned char __clz(unsigned int val)<br />

Where:<br />

val<br />

is an unsigned int.<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!