summaryrefslogtreecommitdiff
path: root/ext/gmp/php_gmp.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2017-12-09 21:09:27 +0100
committerNikita Popov <nikita.ppv@gmail.com>2017-12-11 19:25:54 +0100
commit7fea79675cfb064726f3fc7845e2c2bb1f247ea5 (patch)
tree41adc67f230e213868e797351bcb9c2c1333e588 /ext/gmp/php_gmp.h
parentdc47171523b70112b14cf9144bdf223e9db550fe (diff)
downloadphp-git-7fea79675cfb064726f3fc7845e2c2bb1f247ea5.tar.gz
Add gmp_binomial()
Adds PHP bindings for mpz_bin_ui and mpz_bin_uiui, for calculating binomial coefficients.
Diffstat (limited to 'ext/gmp/php_gmp.h')
-rw-r--r--ext/gmp/php_gmp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/gmp/php_gmp.h b/ext/gmp/php_gmp.h
index 971d6593ec..8ba4b89d5b 100644
--- a/ext/gmp/php_gmp.h
+++ b/ext/gmp/php_gmp.h
@@ -78,6 +78,7 @@ ZEND_FUNCTION(gmp_testbit);
ZEND_FUNCTION(gmp_popcount);
ZEND_FUNCTION(gmp_hamdist);
ZEND_FUNCTION(gmp_nextprime);
+ZEND_FUNCTION(gmp_binomial);
ZEND_BEGIN_MODULE_GLOBALS(gmp)
zend_bool rand_initialized;