Home
last modified time | relevance | path

Searched refs:mod (Results 1 – 25 of 52) sorted by relevance

123

/php-src/ext/bcmath/tests/
H A Dbcmod.phpt26 15 mod 15 = 0
27 15 mod -15 = 0
28 15 mod 1 = 0
29 15 mod -9 = 6
30 15 mod 14.14 = 0
31 15 mod -16.60 = 15
32 15 mod 0.15 = 0
33 15 mod -0.01 = 0
38 15 mod 0.1322135476547459213732911312 = 0
39 15 mod -0.123912932193769965476541321 = 0
[all …]
H A Dbcmod_large_numbers.phpt30 run_bcmath_tests($dividends, $divisors, "mod", bcmod(...));
35 15151324141414.412312232141241 mod 15151324141414.412312232141241 = 0
39 15151324141414.412312232141241 mod 0.1322135476547459213732911312 = 0
40 15151324141414.412312232141241 mod -0.123912932193769965476541321 = 0
41 15151324141414.412312232141241 mod 15 = 4
42 15151324141414.412312232141241 mod -15 = 4
43 15151324141414.412312232141241 mod 1 = 0
44 15151324141414.412312232141241 mod -9 = 1
45 15151324141414.412312232141241 mod 14.14 = 5
47 15151324141414.412312232141241 mod 0.15 = 0
[all …]
H A Dbcmod_zero.phpt34 0 mod 15 = 0
35 0 mod -15 = 0
36 0 mod 1 = 0
37 0 mod -9 = 0
38 0 mod 14.14 = 0
39 0 mod -16.60 = 0
40 0 mod 0.15 = 0
41 0 mod -0.01 = 0
42 0 mod 15151324141414.412312232141241 = 0
43 0 mod -132132245132134.1515123765412 = 0
[all …]
H A Dbcpowmod_with_mod_1.phpt2 bcpowmod() must return 0 when mod is +1 or -1
H A Dbcpowmod_zero_modulus.phpt2 bc_raisemod's mod can't be zero
H A Dbcmod_error2.phpt2 bcmod() - mod by 0
/php-src/ext/bcmath/tests/number/methods/
H A Dpowmod.phpt29 echo "{$value}, expo is {$exponent}({$type_ex}), mod is {$mod}({$type_mod}):\n";
38 12, expo is 2(int), mod is 2(int):
46 12, expo is 2(int), mod is 3(string):
54 12, expo is 2(int), mod is 2(object):
62 12, expo is 0(string), mod is 2(int):
70 12, expo is 0(string), mod is 3(string):
86 12, expo is 3(string), mod is 2(int):
110 12, expo is 2(object), mod is 2(int):
134 12, expo is 0(object), mod is 2(int):
158 -12, expo is 2(int), mod is 2(int):
[all …]
H A Ddiv_mod_by_zero.phpt61 mod: OK
66 mod: OK
71 mod: OK
76 mod: OK
81 mod: OK
86 mod: OK
91 mod: OK
96 mod: OK
101 mod: OK
106 mod: OK
[all …]
H A Dpowmod_with_scale.phpt31 foreach ($mods as [$mod, $type_mod]) {
32 $func_ret = bcpowmod($value, (string) $exponent, (string) $mod, $scale);
33 $method_ret = $num->powmod($exponent, $mod, $scale);
36 var_dump($value, $exponent, $mod, $scale, $func_ret, $method_ret);
H A Dcalc_methods_scale_arg_error.phpt2 BcMath\Number calc methods (add, sub, mul, div, mod, pow) scale arg error
18 'mod',
73 ========== mod ==========
75 BcMath\Number::mod(): Argument #2 ($scale) must be of type ?int, array given
77 BcMath\Number::mod(): Argument #2 ($scale) must be of type ?int, stdClass given
H A Dmod_with_scale.phpt2 BcMath\Number mod() with scale
28 $method_ret = $num->mod($value2, $scale);
H A Dcalc_methods_num_arg_error.phpt2 BcMath\Number calc methods (add, sub, mul, div, mod, pow) num arg error
20 'mod',
97 ========== mod ==========
99 BcMath\Number::mod(): Argument #1 ($num) is not well-formed
101 BcMath\Number::mod(): Argument #1 ($num) must be of type int, string, or BcMath\Number, array given
103 BcMath\Number::mod(): Argument #1 ($num) must be of type int, string, or BcMath\Number, stdClass gi…
110 Deprecated: BcMath\Number::mod(): Passing null to parameter #1 ($num) of type BcMath\Number|string|…
H A Dmod.phpt2 BcMath\Number mod()
25 $ret = $num->mod($value2);
/php-src/ext/opcache/tests/jit/
H A Dmod_001.phpt12 function mod(int $a, int $b) {
15 var_dump(mod(125, 33));
16 var_dump(mod(125, 32));
17 var_dump(mod(-125, 33));
18 var_dump(mod(-125, 32));
19 var_dump(mod(125, -33));
20 var_dump(mod(-125, -33));
22 var_dump(mod(125, -1));
27 var_dump(mod(125, 0));
/php-src/ext/bcmath/libbcmath/src/
H A Draisemod.c37 raise_mod_status bc_raisemod(bc_num base, bc_num expo, bc_num mod, bc_num *result, size_t scale) in bc_raisemod() argument
53 if (mod->n_scale != 0) { in bc_raisemod()
57 if (bc_is_zero(mod)) { in bc_raisemod()
62 if (_bc_do_compare(mod, BCG(_one_), mod->n_scale, false) == BCMATH_EQUAL) { in bc_raisemod()
71 modulus = bc_copy_num(mod); in bc_raisemod()
/php-src/build/
H A Dorder_by_dep.awk67 split($1, mod, ";");
70 gsub("[^a-zA-Z0-9_-]", "", mod[1])
72 mods[mod_count++] = mod[1]
75 get_deps(mod[1], mod[2]);
/php-src/Zend/tests/
H A Dbug69957.phpt2 Bug #69957 (Different ways of handling div/mod by zero)
21 echo "\nVariable mod\n";
39 echo "\nLiteral mod\n";
57 echo "\nDouble mod\n";
68 Variable mod
76 Literal mod
84 Double mod
/php-src/ext/com_dotnet/tests/
H A Dvariants.phpt57 mod: 0
71 mod: 2
117 mod:
155 mod:
233 mod:
271 mod:
321 mod:
383 mod:
441 mod:
503 mod:
[all …]
H A Dvariants_x64.phpt60 mod: 0
74 mod: 2
120 mod:
158 mod:
236 mod:
274 mod:
324 mod:
386 mod:
444 mod:
506 mod:
[all …]
/php-src/tests/lang/
H A Dengine_assignExecutionOrder_003.phpt66 function mod($b)
78 $x[mod($x1)][mod($x2)] = $bx[mod($x3)];
/php-src/ext/session/
H A Dsession.c435 if (!PS(mod)) { in php_session_initialize()
632 PS(mod) = tmp; in PHP_INI_MH()
1508 for (i = 0, mod = ps_modules; i < MAX_MODULES; i++, mod++) { in _php_find_ps_module()
1509 if (*mod && !strcasecmp(name, (*mod)->s_name)) { in _php_find_ps_module()
1510 ret = *mod; in _php_find_ps_module()
1523 for (mod = ps_serializers; mod->name; mod++) { in _php_find_ps_serializer()
1525 ret = mod; in _php_find_ps_serializer()
2019 if (PS(mod) && PS(mod)->s_name) { in PHP_FUNCTION()
2258 if (!PS(mod) || PS(mod) != &ps_mod_user) { in PHP_FUNCTION()
3050 for (i = 0, mod = ps_modules; i < MAX_MODULES; i++, mod++) { in PHP_MINFO_FUNCTION()
[all …]
/php-src/ext/opcache/tests/
H A Dbug75938.phpt11 var_dump($mod = ($count % $columns));
12 var_dump($mod);
/php-src/ext/standard/tests/strings/
H A Dbug61764.phpt9 //expected -30000 mod 2^32 = 4294937296, and not -30000
/php-src/ext/bcmath/tests/number/operators/
H A Dcompound_assignment.phpt56 echo "========== mod ==========\n";
105 ========== mod ==========
H A Dmod_by_zero.phpt2 BcMath\Number mod by zero by operator

Completed in 39 milliseconds

123