Home
last modified time | relevance | path

Searched refs:num (Results 1 – 25 of 454) sorted by relevance

12345678910>>...19

/php-src/ext/bcmath/tests/number/operators/
H A Dcompound_assignment.phpt10 $num_old = $num;
11 $num += 100;
12 echo $num . "\n";
13 $num += '50';
23 $num -= 100;
25 $num -= '50';
35 $num *= 100;
37 $num *= '50';
47 $num /= 100;
59 $num %= 90;
[all …]
H A Dincrement.phpt17 $num = new BcMath\Number($value);
18 $num_old = $num;
20 $num++;
21 echo '$num:' . "\n";
22 var_dump($num);
32 $num:
48 $num:
64 $num:
80 $num:
/php-src/ext/standard/tests/array/
H A Darray_fill.phpt9 foreach($array1 as $num)
14 echo 'start: '.$start.' num: '.$num.' value: '. var_dump($value);
24 start: 0 num: 0 value: array(0) {
28 start: 0 num: 0 value: array(0) {
32 start: 0 num: 0 value: array(0) {
36 start: 0 num: 0 value: array(0) {
40 start: 0 num: 0 value: array(0) {
44 start: 0 num: 0 value: array(0) {
48 start: 0 num: 1 value: array(1) {
54 start: 0 num: 1 value: array(1) {
[all …]
/php-src/ext/bcmath/libbcmath/src/
H A Drmzero.c39 void _bc_rm_leading_zeros(bc_num num) in _bc_rm_leading_zeros() argument
42 while (*num->n_value == 0 && num->n_len > 1) { in _bc_rm_leading_zeros()
43 num->n_value++; in _bc_rm_leading_zeros()
44 num->n_len--; in _bc_rm_leading_zeros()
48 void bc_rm_trailing_zeros(bc_num num) in bc_rm_trailing_zeros() argument
50 if (num->n_scale == 0) { in bc_rm_trailing_zeros()
54 char *end = num->n_value + num->n_len + num->n_scale - 1; in bc_rm_trailing_zeros()
55 while (*end == 0 && num->n_scale > 0) { in bc_rm_trailing_zeros()
56 num->n_scale--; in bc_rm_trailing_zeros()
H A Dround.c42 if (num->n_scale == precision) { in bc_round()
43 *result = bc_copy_num(num); in bc_round()
44 } else if(num->n_scale < precision) { in bc_round()
46 (*result)->n_sign = num->n_sign; in bc_round()
47 memcpy((*result)->n_value, num->n_value, num->n_len + num->n_scale); in bc_round()
69 (*result)->n_sign = num->n_sign; in bc_round()
95 if (num->n_sign != PLUS) { in bc_round()
104 if (num->n_sign != MINUS) { in bc_round()
126 size_t count = num->n_len + num->n_scale - rounded_len - 1; in bc_round()
164 tmp = bc_new_num(num->n_len + 1, 0); in bc_round()
[all …]
H A Dlong2num.c25 bc_num num; in bc_long2num() local
28 num = bc_copy_num(BCG(_zero_)); in bc_long2num()
29 return num; in bc_long2num()
34 num = bc_new_num_nonzeroed(BC_LONG_MAX_DIGITS, 0); in bc_long2num()
36 bc_copy_and_toggle_bcd(num->n_value, ptr, ptr + BC_LONG_MAX_DIGITS); in bc_long2num()
37 num->n_sign = MINUS; in bc_long2num()
38 return num; in bc_long2num()
50 num = bc_new_num_nonzeroed(len, 0); in bc_long2num()
51 char *ptr = num->n_value + len - 1; in bc_long2num()
56 num->n_sign = negative ? MINUS : PLUS; in bc_long2num()
[all …]
H A Dnum2str.c37 zend_string *bc_num2str_ex(bc_num num, size_t scale) in bc_num2str_ex() argument
43 size_t min_scale = MIN(num->n_scale, scale); in bc_num2str_ex()
46 signch = num->n_sign != PLUS && !bc_is_zero_for_scale(num, min_scale); in bc_num2str_ex()
49 str = zend_string_alloc(num->n_len + scale + signch + 1, 0); in bc_num2str_ex()
51 str = zend_string_alloc(num->n_len + signch, 0); in bc_num2str_ex()
59 const char *nptr = num->n_value; in bc_num2str_ex()
60 sptr = bc_copy_and_toggle_bcd(sptr, nptr, nptr + num->n_len); in bc_num2str_ex()
61 nptr += num->n_len; in bc_num2str_ex()
67 for (index = num->n_scale; index < scale; index++) { in bc_num2str_ex()
H A Dfloor_or_ceil.c21 bc_num bc_floor_or_ceil(bc_num num, bool is_floor) in bc_floor_or_ceil() argument
24 bc_num result = bc_new_num(num->n_len, 0); in bc_floor_or_ceil()
25 result->n_sign = num->n_sign; in bc_floor_or_ceil()
28 memcpy(result->n_value, num->n_value, num->n_len); in bc_floor_or_ceil()
32 if (num->n_scale == 0 || result->n_sign == (is_floor ? PLUS : MINUS)) { in bc_floor_or_ceil()
37 size_t count = num->n_scale; in bc_floor_or_ceil()
38 const char *nptr = num->n_value + num->n_len; in bc_floor_or_ceil()
H A Dzero.c38 bool bc_is_zero_for_scale(bc_num num, size_t scale) in bc_is_zero_for_scale() argument
44 if (num == BCG(_zero_)) { in bc_is_zero_for_scale()
49 count = num->n_len + scale; in bc_is_zero_for_scale()
50 nptr = num->n_value; in bc_is_zero_for_scale()
58 bool bc_is_zero(bc_num num) in bc_is_zero() argument
60 return bc_is_zero_for_scale(num, num->n_scale); in bc_is_zero()
H A Dbcmath.h90 num->n_refs++; in bc_copy_num()
91 return num; in bc_copy_num()
94 void bc_init_num(bc_num *num);
102 void bc_int2num(bc_num *num, int val);
104 long bc_num2long(bc_num num);
114 bool bc_is_zero(bc_num num);
120 bool bc_is_neg(bc_num num);
122 void bc_rm_trailing_zeros(bc_num num);
175 bool bc_sqrt(bc_num *num, size_t scale);
180 #define bc_free_num(num) _bc_free_num_ex((num), 0) argument
[all …]
/php-src/ext/dba/libflatfile/
H A Dflatfile.c106 size_t num; in flatfile_delete() local
123 num = php_stream_read(dba->fp, buf, num); in flatfile_delete()
144 num = php_stream_read(dba->fp, buf, num); in flatfile_delete()
155 size_t num; in flatfile_findkey() local
170 num = php_stream_read(dba->fp, buf, num); in flatfile_findkey()
186 num = php_stream_read(dba->fp, buf, num); in flatfile_findkey()
196 size_t num; in flatfile_firstkey() local
210 num = php_stream_read(dba->fp, buf, num); in flatfile_firstkey()
226 num = php_stream_read(dba->fp, buf, num); in flatfile_firstkey()
252 num = php_stream_read(dba->fp, buf, num); in flatfile_nextkey()
[all …]
/php-src/ext/gmp/tests/
H A Doverloading_with_float.phpt75 ["num"]=>
79 ["num"]=>
83 ["num"]=>
87 ["num"]=>
91 ["num"]=>
95 ["num"]=>
99 ["num"]=>
103 ["num"]=>
107 ["num"]=>
111 ["num"]=>
[all …]
H A Doverloading_with_int_string.phpt75 ["num"]=>
79 ["num"]=>
83 ["num"]=>
87 ["num"]=>
91 ["num"]=>
95 ["num"]=>
99 ["num"]=>
103 ["num"]=>
107 ["num"]=>
111 ["num"]=>
[all …]
H A Doverloading.phpt128 ["num"]=>
132 ["num"]=>
136 ["num"]=>
140 ["num"]=>
144 ["num"]=>
148 ["num"]=>
152 ["num"]=>
156 ["num"]=>
160 ["num"]=>
164 ["num"]=>
[all …]
H A Doverloading_with_float_fractional.phpt76 ["num"]=>
82 ["num"]=>
88 ["num"]=>
94 ["num"]=>
100 ["num"]=>
104 ["num"]=>
110 ["num"]=>
116 ["num"]=>
122 ["num"]=>
126 ["num"]=>
[all …]
H A Dgmp_div_qr.phpt54 ["num"]=>
59 ["num"]=>
68 ["num"]=>
73 ["num"]=>
81 ["num"]=>
86 ["num"]=>
93 ["num"]=>
98 ["num"]=>
105 ["num"]=>
110 ["num"]=>
[all …]
H A Dgmp_binomial.phpt31 ["num"]=>
35 ["num"]=>
39 ["num"]=>
43 ["num"]=>
47 ["num"]=>
51 ["num"]=>
55 ["num"]=>
59 ["num"]=>
63 ["num"]=>
67 ["num"]=>
H A Dgmp_init_leading_spaces.phpt26 ["num"]=>
30 ["num"]=>
34 ["num"]=>
38 ["num"]=>
42 ["num"]=>
46 ["num"]=>
50 ["num"]=>
54 ["num"]=>
58 ["num"]=>
61 ValueError: gmp_init(): Argument #1 ($num) is not an integer string
H A Dgmp_init_integer_notations.phpt20 ["num"]=>
24 ["num"]=>
28 ["num"]=>
32 ["num"]=>
36 ["num"]=>
40 ["num"]=>
44 ["num"]=>
48 ["num"]=>
H A Dgmp_remroot.phpt38 ["num"]=>
43 ["num"]=>
50 ["num"]=>
55 ["num"]=>
62 ["num"]=>
67 ["num"]=>
74 ["num"]=>
79 ["num"]=>
86 ["num"]=>
91 ["num"]=>
[all …]
/php-src/Zend/
H A Dzend_bitset.h75 if ((num & 0xffffffff) == 0) {n += 32; num = num >> Z_UL(32);}
77 if ((num & 0x0000ffff) == 0) {n += 16; num = num >> 16;}
78 if ((num & 0x000000ff) == 0) {n += 8; num = num >> 8;}
79 if ((num & 0x0000000f) == 0) {n += 4; num = num >> 4;}
80 if ((num & 0x00000003) == 0) {n += 2; num = num >> 2;}
112 x = num >> 32; if (x != 0) {n -= 32; num = x;}
116 x = num >> 16; if (x != 0) {n -= 16; num = x;}
117 x = num >> 8; if (x != 0) {n -= 8; num = x;}
118 x = num >> 4; if (x != 0) {n -= 4; num = x;}
119 x = num >> 2; if (x != 0) {n -= 2; num = x;}
[all …]
/php-src/ext/random/
H A Dphp_random_uint128.h31 static inline uint64_t php_random_uint128_hi(php_random_uint128_t num) in php_random_uint128_hi() argument
33 return num.hi; in php_random_uint128_hi()
36 static inline uint64_t php_random_uint128_lo(php_random_uint128_t num) in php_random_uint128_lo() argument
38 return num.lo; in php_random_uint128_lo()
81 v = (num.hi ^ num.lo), in php_random_pcgoneseq128xslrr64_rotr64()
82 s = num.hi >> 58U; in php_random_pcgoneseq128xslrr64_rotr64()
89 static inline uint64_t php_random_uint128_hi(php_random_uint128_t num) in php_random_uint128_hi() argument
91 return (uint64_t) (num >> 64); in php_random_uint128_hi()
96 return (uint64_t) num; in php_random_uint128_lo()
121 v = ((uint64_t) (num >> 64U)) ^ (uint64_t) num, in php_random_pcgoneseq128xslrr64_rotr64()
[all …]
/php-src/ext/dom/lexbor/lexbor/css/selectors/
H A Dselector.h130 sp = (LXB_CSS_SELECTOR_SPECIFICITY_MASK_N((sp), 28) | ((num) << 28))
133 sp = (LXB_CSS_SELECTOR_SPECIFICITY_MASK_N((sp), 27) | ((num) << 27))
136 sp = (LXB_CSS_SELECTOR_SPECIFICITY_MASK_N((sp), 18) | ((num) << 18))
139 sp = (LXB_CSS_SELECTOR_SPECIFICITY_MASK_N((sp), 9) | ((num) << 9))
142 sp = (LXB_CSS_SELECTOR_SPECIFICITY_MASK_N((sp), 0) | (num))
145 (lxb_css_selector_sp_set_s((sp), lxb_css_selector_sp_s(sp) + num))
148 (lxb_css_selector_sp_set_a((sp), lxb_css_selector_sp_a(sp) + num))
151 (lxb_css_selector_sp_set_b((sp), lxb_css_selector_sp_b(sp) + num))
154 (lxb_css_selector_sp_set_c((sp), lxb_css_selector_sp_c(sp) + num))
156 #define lxb_css_selector_sp_up_i(num) (num | (1 << 28)) argument
[all …]
/php-src/ext/standard/
H A Dmath.c395 double num; in PHP_FUNCTION() local
407 double num; in PHP_FUNCTION() local
419 double num; in PHP_FUNCTION() local
431 double num; in PHP_FUNCTION() local
443 double num; in PHP_FUNCTION() local
455 double num; in PHP_FUNCTION() local
480 double num; in PHP_FUNCTION() local
492 double num; in PHP_FUNCTION() local
504 double num; in PHP_FUNCTION() local
777 num = num * base + digit; in _php_math_basetolong()
[all …]
/php-src/ext/calendar/tests/
H A Dcal_days_in_month.phpt7 $num = cal_days_in_month(CAL_GREGORIAN, 8, 2003);
8 echo "There are $num days in August 2003\n";
9 $num = cal_days_in_month(CAL_GREGORIAN, 2, 2003);
10 echo "There are $num days in February 2003\n";
11 $num = cal_days_in_month(CAL_GREGORIAN, 2, 2004);
12 echo "There are $num days in February 2004\n";
13 $num = cal_days_in_month(CAL_GREGORIAN, 12, 2034);
14 echo "There are $num days in December 2034\n";

Completed in 86 milliseconds

12345678910>>...19