gmp_testbit
Tests if a bit is set
&reftitle.description;
boolgmp_testbit
GMPa
intindex
Tests if the specified bit is set.
&reftitle.parameters;
a
&gmp.parameter;
index
The bit to test
&reftitle.returnvalues;
Returns &true; if the bit is set in resource $a,
otherwise &false;.
&reftitle.errors;
An E_WARNING level error is issued when
index is less than zero, and &false;
is returned.
&reftitle.examples;
gmp_testbit example
]]>
&example.outputs;
&reftitle.seealso;
gmp_setbit
gmp_clrbit