php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_bcmath.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Copyright (c) The PHP Group |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | https://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Author: Andi Gutmans <andi@php.net> |
14 +----------------------------------------------------------------------+
15*/
16
17#ifndef PHP_BCMATH_H
18#define PHP_BCMATH_H
19
21#include "zend_API.h"
23
25#define phpext_bcmath_ptr &bcmath_module_entry
26
27#include "php_version.h"
28#define PHP_BCMATH_VERSION PHP_VERSION
29
30#define BC_ARENA_SIZE 256
31
37 char *arena;
40
41#if defined(ZTS) && defined(COMPILE_DL_BCMATH)
43#endif
44
46#define BCG(v) ZEND_MODULE_GLOBALS_ACCESSOR(bcmath, v)
47
48/* Maximum number of digits to extend when scale needs to be extended, such as in undivisible division */
49#define BC_MATH_NUMBER_EXPAND_SCALE 10
50
57
58#endif /* PHP_BCMATH_H */
struct bc_struct * bc_num
Definition bcmath.h:39
bc_num _two_
Definition php_bcmath.h:35
zend_module_entry bcmath_module_entry
bc_num _zero_
Definition php_bcmath.h:33
int bc_precision
Definition php_bcmath.h:36
size_t arena_offset
Definition php_bcmath.h:38
struct _bcmath_number_obj_t bcmath_number_obj_t
char * arena
Definition php_bcmath.h:37
bc_num _one_
Definition php_bcmath.h:34
zend_string * value
Definition php_bcmath.h:52
#define ZEND_TSRMLS_CACHE_EXTERN()
Definition zend.h:67
#define ZEND_END_MODULE_GLOBALS(module_name)
Definition zend_API.h:248
#define ZEND_EXTERN_MODULE_GLOBALS(module_name)
Definition zend_API.h:270
#define ZEND_BEGIN_MODULE_GLOBALS(module_name)
Definition zend_API.h:246
struct _zend_string zend_string
struct _zend_module_entry zend_module_entry
struct _zend_object zend_object