1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #ifndef PHP_BCMATH_H
- #define PHP_BCMATH_H
- #include "libbcmath/src/bcmath.h"
- extern zend_module_entry bcmath_module_entry;
- #define phpext_bcmath_ptr &bcmath_module_entry
- #include "php_version.h"
- #define PHP_BCMATH_VERSION PHP_VERSION
- PHP_MINIT_FUNCTION(bcmath);
- PHP_MSHUTDOWN_FUNCTION(bcmath);
- PHP_MINFO_FUNCTION(bcmath);
- PHP_FUNCTION(bcadd);
- PHP_FUNCTION(bcsub);
- PHP_FUNCTION(bcmul);
- PHP_FUNCTION(bcdiv);
- PHP_FUNCTION(bcmod);
- PHP_FUNCTION(bcpow);
- PHP_FUNCTION(bcsqrt);
- PHP_FUNCTION(bccomp);
- PHP_FUNCTION(bcscale);
- PHP_FUNCTION(bcpowmod);
- ZEND_BEGIN_MODULE_GLOBALS(bcmath)
- bc_num _zero_;
- bc_num _one_;
- bc_num _two_;
- zend_long bc_precision;
- ZEND_END_MODULE_GLOBALS(bcmath)
- #if defined(ZTS) && defined(COMPILE_DL_BCMATH)
- ZEND_TSRMLS_CACHE_EXTERN()
- #endif
- ZEND_EXTERN_MODULE_GLOBALS(bcmath)
- #define BCG(v) ZEND_MODULE_GLOBALS_ACCESSOR(bcmath, v)
- #endif
|