rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / manglsl / findMSB.xml
CommitLineData
7faf1d71
AW
1<?xml version="1.0" encoding="UTF-8"?>\r
2<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"\r
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">\r
4<refentry id="findMSB">\r
5 <refmeta>\r
6 <refmetainfo>\r
7 <copyright>\r
8 <year>2011</year>\r
9 <holder>Khronos Group</holder>\r
10 </copyright>\r
11 </refmetainfo>\r
12 <refentrytitle>findMSB</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>findMSB</refname>\r
17 <refpurpose>find the index of the most significant bit set to 1 in an integer</refpurpose>\r
18 </refnamediv>\r
19 <refsynopsisdiv><title>Declaration</title>\r
20 <funcsynopsis>\r
21 <funcprototype>\r
22 <funcdef>genIType <function>findMSB</function></funcdef>\r
23 <paramdef>genIType <parameter>value</parameter></paramdef>\r
24 </funcprototype> <funcprototype>\r
25 <funcdef>genIType <function>findMSB</function></funcdef>\r
26 <paramdef>genUType <parameter>value</parameter></paramdef>\r
27 </funcprototype>\r
28 </funcsynopsis>\r
29 </refsynopsisdiv>\r
30 <refsect1 id="parameters"><title>Parameters</title>\r
31 <variablelist>\r
32 <varlistentry>\r
33 <term><parameter>value</parameter></term>\r
34 <listitem>\r
35 <para>\r
36 Specifies the value whose bits to scan.\r
37 </para>\r
38 </listitem>\r
39 </varlistentry>\r
40 </variablelist>\r
41 </refsect1>\r
42 <refsect1 id="description"><title>Description</title>\r
43 <para>\r
44 <function>findMSB</function> returns the bit number of the most significant bit that is set to 1 in the binary\r
45 representation of <parameter>value</parameter>. For positive integers, the result will be the bit number\r
46 of the most significant bit that is set to 1. For negative integers, the result will be the bit number of the\r
47 most significant bit set to 0. For a <parameter>value</parameter> of zero or negative 1, -1 will be returned.\r
48 </para>\r
49 </refsect1>\r
50 <refsect1 id="versions"><title>Version Support</title>\r
51 <informaltable frame="topbot">\r
52 #VARTABLECOLS#\r
53 <thead>\r
54 #FUNCTABLEHEADER#\r
55 <row>\r
56 <entry>findMSB</entry>#newin40#\r
57 </row>\r
58 </thead>\r
59 </tgroup>\r
60 </informaltable>\r
61 </refsect1>\r
62 <refsect1 id="seealso"><title>See Also</title>\r
63 <para>\r
64 <citerefentry><refentrytitle>findLSB</refentrytitle></citerefentry>\r
65 </para>\r
66 </refsect1>\r
67 <refsect1 id="Copyright"><title>Copyright</title>\r
68 <para>\r
69 Copyright <trademark class="copyright"></trademark> 2011 Khronos Group. \r
70 This material may be distributed subject to the terms and conditions set forth in \r
71 the Open Publication License, v 1.0, 8 June 1999.\r
72 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
73 </para>\r
74 </refsect1>\r
75</refentry>\r