bitfieldReverse

From OpenGL Reference
Jump to navigation Jump to search

Reverse the order of bits in an integer.

Declaration[edit]

genIType bitfieldReverse( genIType value );
genUType bitfieldReverse( genUType value );


Parameters[edit]

value - Specifies the value whose bits to reverse.


Description[edit]

 bitfieldReverse returns the reversal of the bits of value. The bit numberednwill be taken from bit (bits- 1) -nof value , wherebitsis the total number of bits used to represent value .


Version Support[edit]

bitfieldReverse 4.0+

See Also[edit]

 bitfieldExtract , bitfieldInsert , bitCount 


Copyright[edit]

Copyright© 2011-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.