Function glm::builtin::bitfieldReverse
[−]
[src]
pub fn bitfieldReverse<I: BaseInt, T: GenInt<I>>(value: T) -> T
Returns the reversal of the bits of value
.
The bit numbered n of the result will be taken from bit (bits - 1) - n
of value
, where bits is the total number of bits used to represent
value
.
Example
use glm::bitfieldReverse; assert_eq!(bitfieldReverse(0xF30000F3), 0xCF0000CF);