1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4 <refentry id=
"bitfieldReverse">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>bitfieldReverse
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>bitfieldReverse
</refname>
17 <refpurpose>reverse the order of bits in an integer
</refpurpose>
19 <refsynopsisdiv><title>Declaration
</title>
22 <funcdef>genIType
<function>bitfieldReverse
</function></funcdef>
23 <paramdef>genIType
<parameter>value
</parameter></paramdef>
24 </funcprototype> <funcprototype>
25 <funcdef>genUType
<function>bitfieldReverse
</function></funcdef>
26 <paramdef>genUType
<parameter>value
</parameter></paramdef>
30 <refsect1 id=
"parameters"><title>Parameters
</title>
33 <term><parameter>value
</parameter></term>
36 Specifies the value whose bits to reverse.
42 <refsect1 id=
"description"><title>Description
</title>
44 <function>bitfieldReverse
</function> returns the reversal of the bits of value. The bit
45 numbered
<emphasis>n
</emphasis> will be taken from bit (
<emphasis>bits
</emphasis> -
1) -
<emphasis>n
</emphasis>
46 of
<parameter>value
</parameter>, where
<emphasis>bits
</emphasis> is the total number of bits used to represent
47 <parameter>value
</parameter>.
50 <refsect1 id=
"versions"><title>Version Support
</title>
51 <informaltable frame=
"topbot">
56 <entry>bitfieldReverse
</entry>#newin40#
62 <refsect1 id=
"seealso"><title>See Also
</title>
64 <citerefentry><refentrytitle>bitfieldExtract
</refentrytitle></citerefentry>,
65 <citerefentry><refentrytitle>bitfieldInsert
</refentrytitle></citerefentry>,
66 <citerefentry><refentrytitle>bitCount
</refentrytitle></citerefentry>
69 <refsect1 id=
"Copyright"><title>Copyright
</title>
71 Copyright
<trademark class=
"copyright"></trademark> 2011 Khronos Group.
72 This material may be distributed subject to the terms and conditions set forth in
73 the Open Publication License, v
1.0,
8 June
1999.
74 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.