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
- 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_;
- long bc_precision;
- ZEND_END_MODULE_GLOBALS(bcmath)
-
- #ifdef ZTS
- # define BCG(v) TSRMG(bcmath_globals_id, zend_bcmath_globals *, v)
- #else
- # define BCG(v) (bcmath_globals.v)
- #endif
- ZEND_EXTERN_MODULE_GLOBALS(bcmath)
- #endif
|