From 06b19288a6ecdda97c4c6d074454bc57052c5a6e Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Tue, 22 May 2007 14:34:36 +0000 Subject: [PATCH] Add gmp_testbit() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@236114 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/gmp/functions/gmp-clrbit.xml | 5 +- reference/gmp/functions/gmp-setbit.xml | 5 +- reference/gmp/functions/gmp-testbit.xml | 116 ++++++++++++++++++++++++ 3 files changed, 122 insertions(+), 4 deletions(-) create mode 100644 reference/gmp/functions/gmp-testbit.xml diff --git a/reference/gmp/functions/gmp-clrbit.xml b/reference/gmp/functions/gmp-clrbit.xml index 7f1276990b..f713377739 100644 --- a/reference/gmp/functions/gmp-clrbit.xml +++ b/reference/gmp/functions/gmp-clrbit.xml @@ -1,5 +1,5 @@ - + @@ -46,7 +46,8 @@ echo gmp_strval($a) . "\n"; - See also gmp_setbit. + See also gmp_setbit and + gmp_testbit. diff --git a/reference/gmp/functions/gmp-setbit.xml b/reference/gmp/functions/gmp-setbit.xml index ef5ffe2aea..421e186e49 100644 --- a/reference/gmp/functions/gmp-setbit.xml +++ b/reference/gmp/functions/gmp-setbit.xml @@ -1,5 +1,5 @@ - + @@ -49,7 +49,8 @@ echo gmp_strval($a) . "\n"; - See also gmp_clrbit. + See also gmp_clrbit and + gmp_testbit. diff --git a/reference/gmp/functions/gmp-testbit.xml b/reference/gmp/functions/gmp-testbit.xml new file mode 100644 index 0000000000..6c9752978f --- /dev/null +++ b/reference/gmp/functions/gmp-testbit.xml @@ -0,0 +1,116 @@ + + + + + gmp_testbit + Tests if a bit is set + + + + &reftitle.description; + + boolgmp_testbit + resourcea + intindex + + + Tests if the specified bit is set. + + + + + &reftitle.parameters; + + + + a + + + A GMP number resource + + + + + index + + + The bit to test + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.errors; + + E_WARNING is issued when index is less than zero. + + + + + &reftitle.examples; + + + <function>gmp_testbit</function> example + + +]]> + + &example.outputs; + + + + + + + + + &reftitle.seealso; + + + gmp_setbit + gmp_clrbit + + + + + + +