4.7.29. __rbit

This intrinsic inserts an RBIT instruction into the instruction stream generated by the compiler. It enables you to reverse the bit order in a 32-bit word from within your C or C++ code.

Syntax

unsigned int __rbit(unsigned int val)

where:

val

is the data value whose bit order is to be reversed.

Return value

The __rbit intrinsic returns the value obtained from val by reversing its bit order.

See also

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