/php-src/Zend/tests/ |
H A D | bw_or_assign_with_ref.phpt | 6 $num1 = 1; 9 $num1 |= $num2; 10 var_dump($num1);
|
/php-src/ext/bcmath/ |
H A D | bcmath.stub.php | 6 function bcadd(string $num1, string $num2, ?int $scale = null): string {} argument 9 function bcsub(string $num1, string $num2, ?int $scale = null): string {} argument 12 function bcmul(string $num1, string $num2, ?int $scale = null): string {} argument 15 function bcdiv(string $num1, string $num2, ?int $scale = null): string {} argument 18 function bcmod(string $num1, string $num2, ?int $scale = null): string {} argument 29 function bccomp(string $num1, string $num2, ?int $scale = null): int {} argument
|
H A D | bcmath_arginfo.h | 5 ZEND_ARG_TYPE_INFO(0, num1, IS_STRING, 0) 37 ZEND_ARG_TYPE_INFO(0, num1, IS_STRING, 0)
|
/php-src/ext/bcmath/libbcmath/src/ |
H A D | bcmath.h | 144 bool bc_modulo(bc_num num1, bc_num num2, bc_num *resul, size_t scale); 146 bool bc_divmod(bc_num num1, bc_num num2, bc_num *quo, bc_num *rem, size_t scale);
|
H A D | div.c | 82 unsigned char *num1, *num2; in bc_divide() local 120 memset(num1, 0, n1->n_len + n1->n_scale + extra + 2); in bc_divide() 121 memcpy(num1 + 1, n1->n_value, n1->n_len + n1->n_scale); in bc_divide() 159 _one_mult(num1, len1 + scale1 + extra + 1, norm, num1); in bc_divide() 174 if (*n2ptr == num1[qdig]) { in bc_divide() 177 qguess = (num1[qdig] * 10 + num1[qdig + 1]) / *n2ptr; in bc_divide() 181 …if (n2ptr[1] * qguess > (num1[qdig] * 10 + num1[qdig + 1] - *n2ptr * qguess) * 10 + num1[qdig + 2]… in bc_divide() 184 …if (n2ptr[1] * qguess > (num1[qdig] * 10 + num1[qdig + 1] - *n2ptr * qguess) * 10 + num1[qdig + 2]… in bc_divide() 194 ptr1 = (unsigned char *) num1 + qdig + len2; in bc_divide() 211 ptr1 = (unsigned char *) num1 + qdig + len2; in bc_divide() [all …]
|
H A D | divmod.c | 44 bool bc_divmod(bc_num num1, bc_num num2, bc_num *quot, bc_num *rem, size_t scale) in bc_divmod() argument 56 rscale = MAX (num1->n_scale, num2->n_scale + scale); in bc_divmod() 60 bc_divide(num1, num2, &temp, 0); in bc_divmod() 65 bc_sub_ex(num1, temp, rem, rscale); in bc_divmod() 80 bool bc_modulo(bc_num num1, bc_num num2, bc_num *result, size_t scale) in bc_modulo() argument 82 return bc_divmod(num1, num2, NULL, result, scale); in bc_modulo()
|
H A D | raise.c | 42 void bc_raise(bc_num num1, long exponent, bc_num *result, size_t scale) in bc_raise() argument 64 rscale = MIN (num1->n_scale * exponent, MAX(scale, num1->n_scale)); in bc_raise() 68 power = bc_copy_num(num1); in bc_raise() 69 pwrscale = num1->n_scale; in bc_raise()
|
/php-src/ext/bcmath/tests/ |
H A D | bcadd_error.phpt | 22 bcadd(): Argument #1 ($num1) is not well-formed
|
H A D | bccomp_error.phpt | 22 bccomp(): Argument #1 ($num1) is not well-formed
|
H A D | bcdiv_error2.phpt | 22 bcdiv(): Argument #1 ($num1) is not well-formed
|
H A D | bcmod_error3.phpt | 22 bcmod(): Argument #1 ($num1) is not well-formed
|
H A D | bcmul_error.phpt | 22 bcmul(): Argument #1 ($num1) is not well-formed
|
H A D | bcsub_error.phpt | 22 bcsub(): Argument #1 ($num1) is not well-formed
|
H A D | bug80545.phpt | 22 bcadd(): Argument #1 ($num1) is not well-formed
|
H A D | str2num_formatting.phpt | 103 bcadd(): Argument #1 ($num1) is not well-formed 104 bcadd(): Argument #1 ($num1) is not well-formed 105 bcadd(): Argument #1 ($num1) is not well-formed 106 bcadd(): Argument #1 ($num1) is not well-formed 107 bcadd(): Argument #1 ($num1) is not well-formed 108 bcadd(): Argument #1 ($num1) is not well-formed 116 bccomp(): Argument #1 ($num1) is not well-formed 117 bccomp(): Argument #1 ($num1) is not well-formed 118 bccomp(): Argument #1 ($num1) is not well-formed 119 bccomp(): Argument #1 ($num1) is not well-formed [all …]
|
/php-src/ext/gmp/ |
H A D | gmp.stub.php | 79 function gmp_add(GMP|int|string $num1, GMP|int|string $num2): GMP {} argument 81 function gmp_sub(GMP|int|string $num1, GMP|int|string $num2): GMP {} argument 83 function gmp_mul(GMP|int|string $num1, GMP|int|string $num2): GMP {} argument 98 function gmp_mod(GMP|int|string $num1, GMP|int|string $num2): GMP {} argument 134 function gmp_gcd(GMP|int|string $num1, GMP|int|string $num2): GMP {} argument 142 function gmp_lcm(GMP|int|string $num1, GMP|int|string $num2): GMP {} argument 152 function gmp_cmp(GMP|int|string $num1, GMP|int|string $num2): int {} argument 162 function gmp_and(GMP|int|string $num1, GMP|int|string $num2): GMP {} argument 164 function gmp_or(GMP|int|string $num1, GMP|int|string $num2): GMP {} argument 176 function gmp_scan0(GMP|int|string $num1, int $start): int {} argument [all …]
|
H A D | gmp_arginfo.h | 31 ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL) 40 ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL) 46 ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL) 108 ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL) 115 ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL) 120 ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL) 170 ZEND_ARG_OBJ_TYPE_MASK(0, num1, GMP, MAY_BE_LONG|MAY_BE_STRING, NULL)
|
/php-src/ext/gmp/tests/ |
H A D | gmp_and.phpt | 50 gmp_and(): Argument #1 ($num1) is not an integer string 53 gmp_and(): Argument #1 ($num1) must be of type GMP|string|int, array given 55 gmp_and(): Argument #1 ($num1) must be of type GMP|string|int, array given
|
H A D | gmp_cmp.phpt | 37 gmp_cmp(): Argument #1 ($num1) must be of type GMP|string|int, array given
|
H A D | gmp_div_q.phpt | 79 gmp_div_q(): Argument #1 ($num1) must be of type GMP|string|int, resource given 80 gmp_div_q(): Argument #1 ($num1) must be of type GMP|string|int, array given
|
H A D | gmp_div_qr.phpt | 162 gmp_div_qr(): Argument #1 ($num1) must be of type GMP|string|int, resource given 163 gmp_div_qr(): Argument #1 ($num1) must be of type GMP|string|int, array given
|
H A D | gmp_div_r.phpt | 79 gmp_div_r(): Argument #1 ($num1) must be of type GMP|string|int, resource given 80 gmp_div_r(): Argument #1 ($num1) must be of type GMP|string|int, array given
|
H A D | gmp_gcdext.phpt | 66 gmp_gcdext(): Argument #1 ($num1) must be of type GMP|string|int, array given
|
H A D | gmp_hamdist.phpt | 46 gmp_hamdist(): Argument #1 ($num1) must be of type GMP|string|int, array given 47 gmp_hamdist(): Argument #1 ($num1) must be of type GMP|string|int, array given
|
H A D | gmp_invert.phpt | 64 gmp_invert(): Argument #1 ($num1) must be of type GMP|string|int, array given 66 gmp_invert(): Argument #1 ($num1) must be of type GMP|string|int, array given
|