This intrinsic inserts a REV instruction or an equivalent code sequence into the instruction stream generated by the compiler. It enables you to convert a 32‑bit big‑endian data value into a little‑endian data value, or a 32‑bit little‑endian data value into big‑endian data value from within your C or C++ code.
Note
The compiler introduces REV automatically when it recognizes certain expressions.
unsigned int __rev(unsigned int val)
Where:
The __rev intrinsic returns the value obtained from val by reversing its byte order.