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=
"bitCount">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>bitCount
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>bitCount
</refname>
17 <refpurpose>counts the number of
1 bits in an integer
</refpurpose>
19 <refsynopsisdiv><title>Declaration
</title>
22 <funcdef>genIType
<function>bitCount
</function></funcdef>
23 <paramdef>genIType
<parameter>value
</parameter></paramdef>
24 </funcprototype> <funcprototype>
25 <funcdef>genIType
<function>bitCount
</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 count.
42 <refsect1 id=
"description"><title>Description
</title>
44 <function>bitCount
</function> returns the number of bits that are set to
1 in the binary representation of
<parameter>value
</parameter>.
47 <refsect1 id=
"versions"><title>Version Support
</title>
48 <informaltable frame=
"topbot">
53 <entry>bitCount
</entry>#newin40#
59 <refsect1 id=
"seealso"><title>See Also
</title>
61 <citerefentry><refentrytitle>findLSB
</refentrytitle></citerefentry>,
62 <citerefentry><refentrytitle>findMSB
</refentrytitle></citerefentry>
65 <refsect1 id=
"Copyright"><title>Copyright
</title>
67 Copyright
<trademark class=
"copyright"></trademark> 2011 Khronos Group.
68 This material may be distributed subject to the terms and conditions set forth in
69 the Open Publication License, v
1.0,
8 June
1999.
70 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.