From 7fea79675cfb064726f3fc7845e2c2bb1f247ea5 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 9 Dec 2017 21:09:27 +0100 Subject: Add gmp_binomial() Adds PHP bindings for mpz_bin_ui and mpz_bin_uiui, for calculating binomial coefficients. --- ext/gmp/php_gmp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/gmp/php_gmp.h') 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; -- cgit v1.2.1