4.7.32.  __ror

This intrinsic inserts a ROR instruction or operand rotation into the instruction stream generated by the compiler. It enables you to rotate a value right by a specified number of places from within your C or C++ code.

Note

The compiler introduces ROR automatically when it recognizes certain expressions.

Syntax

unsigned int __ror(unsigned int val, unsigned int shift)

Where:

val

is the value to be shifted right

shift

is a constant shift in the range 1-31.

Return value

The __ror intrinsic returns the value of val rotated right by shift number of places.

See also

Copyright © 2007, 2010 ARM Limited. All rights reserved.ARM DUI 0348A
Non-Confidential