Back to index

php5  5.3.10
php_bcmath.h
Go to the documentation of this file.
00001 /* 
00002    +----------------------------------------------------------------------+
00003    | PHP Version 5                                                        |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1997-2012 The PHP Group                                |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 3.01 of the PHP license,      |
00008    | that is bundled with this package in the file LICENSE, and is        |
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.php.net/license/3_01.txt                                  |
00011    | If you did not receive a copy of the PHP license and are unable to   |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@php.net so we can mail you a copy immediately.               |
00014    +----------------------------------------------------------------------+
00015    | Author: Andi Gutmans <andi@zend.com>                                 |
00016    +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: php_bcmath.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef PHP_BCMATH_H
00022 #define PHP_BCMATH_H
00023 
00024 #include "libbcmath/src/bcmath.h"
00025 
00026 extern zend_module_entry bcmath_module_entry;
00027 #define phpext_bcmath_ptr &bcmath_module_entry
00028 
00029 PHP_MINIT_FUNCTION(bcmath);
00030 PHP_MSHUTDOWN_FUNCTION(bcmath);
00031 PHP_MINFO_FUNCTION(bcmath);
00032 
00033 PHP_FUNCTION(bcadd);
00034 PHP_FUNCTION(bcsub);
00035 PHP_FUNCTION(bcmul);
00036 PHP_FUNCTION(bcdiv);
00037 PHP_FUNCTION(bcmod);
00038 PHP_FUNCTION(bcpow);
00039 PHP_FUNCTION(bcsqrt);
00040 PHP_FUNCTION(bccomp);
00041 PHP_FUNCTION(bcscale);
00042 PHP_FUNCTION(bcpowmod);
00043 
00044 ZEND_BEGIN_MODULE_GLOBALS(bcmath)
00045        bc_num _zero_;
00046        bc_num _one_;
00047        bc_num _two_;
00048        long bc_precision;
00049 ZEND_END_MODULE_GLOBALS(bcmath)
00050        
00051 #ifdef ZTS
00052 # define BCG(v) TSRMG(bcmath_globals_id, zend_bcmath_globals *, v)
00053 #else
00054 # define BCG(v) (bcmath_globals.v)
00055 #endif
00056 
00057 ZEND_EXTERN_MODULE_GLOBALS(bcmath)
00058 
00059 #endif /* PHP_BCMATH_H */