10.132 __ror intrinsic

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.

Related information
ROR
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.