Home
last modified time | relevance | path

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

12345678910>>...14

/PHP-8.1/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-8.1/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-8.1/ext/gmp/tests/
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 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_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 …]
H A Dgmp_lcm.phpt21 ["num"]=>
25 ["num"]=>
29 ["num"]=>
33 ["num"]=>
37 ["num"]=>
41 ["num"]=>
45 ["num"]=>
/PHP-8.1/ext/bcmath/libbcmath/src/
H A Dinit.c66 bc_num *num; in _bc_free_num_ex()
69 if (*num == NULL) return;
70 (*num)->n_refs--;
71 if ((*num)->n_refs == 0) {
72 if ((*num)->n_ptr)
75 pefree(*num, persistent);
77 *num = NULL;
97 bc_copy_num (bc_num num) in bc_copy_num() argument
99 num->n_refs++; in bc_copy_num()
100 return num; in bc_copy_num()
[all …]
H A Dbcmath.h97 bc_num bc_copy_num(bc_num num);
99 void bc_init_num(bc_num *num);
105 void bc_int2num(bc_num *num, int val);
107 long bc_num2long(bc_num num);
111 char bc_is_zero(bc_num num);
113 char bc_is_zero_for_scale(bc_num num, int scale);
115 char bc_is_near_zero(bc_num num, int scale);
117 char bc_is_neg(bc_num num);
135 int bc_sqrt(bc_num *num, int scale);
141 #define bc_free_num(num) _bc_free_num_ex((num), 0) argument
[all …]
H A Dnum2str.c43 *bc_num2str_ex (num, scale) in bc_num2str_ex() argument
44 bc_num num; in bc_num2str_ex()
53 …signch = num->n_sign != PLUS && !bc_is_zero_for_scale(num, MIN(num->n_scale, scale)); /* Number o…
55 str = zend_string_alloc(num->n_len + scale + signch + 1, 0);
57 str = zend_string_alloc(num->n_len + signch, 0);
64 nptr = num->n_value;
65 for (index=num->n_len; index>0; index--)
72 for (index=0; index<scale && index<num->n_scale; index++)
74 for (index = num->n_scale; index<scale; index++)
H A Dsqrt.c44 bc_sqrt (bc_num *num, int scale) in bc_sqrt() argument
51 cmp_res = bc_compare (*num, BCG(_zero_)); in bc_sqrt()
58 bc_free_num (num); in bc_sqrt()
59 *num = bc_copy_num (BCG(_zero_)); in bc_sqrt()
63 cmp_res = bc_compare (*num, BCG(_one_)); in bc_sqrt()
66 bc_free_num (num); in bc_sqrt()
67 *num = bc_copy_num (BCG(_one_)); in bc_sqrt()
72 rscale = MAX (scale, (*num)->n_scale); in bc_sqrt()
84 cscale = (*num)->n_scale; in bc_sqrt()
92 bc_int2num (&guess1,(*num)->n_len); in bc_sqrt()
[all …]
H A Drmzero.c45 _bc_rm_leading_zeros (num) in _bc_rm_leading_zeros() argument
46 bc_num num; in _bc_rm_leading_zeros()
49 while (*num->n_value == 0 && num->n_len > 1) {
50 num->n_value++;
51 num->n_len--;
H A Dzero.c43 bc_is_zero_for_scale (bc_num num, int scale) in bc_is_zero_for_scale() argument
49 if (num == BCG(_zero_)) return TRUE; in bc_is_zero_for_scale()
52 count = num->n_len + scale; in bc_is_zero_for_scale()
53 nptr = num->n_value; in bc_is_zero_for_scale()
65 bc_is_zero (bc_num num) in bc_is_zero() argument
67 return bc_is_zero_for_scale(num, num->n_scale); in bc_is_zero()
H A Dstr2num.c43 bc_str2num (bc_num *num, char *str, int scale) in bc_str2num() argument
50 bc_free_num (num); in bc_str2num()
64 *num = bc_copy_num (BCG(_zero_)); in bc_str2num()
75 *num = bc_new_num (digits, strscale); in bc_str2num()
81 (*num)->n_sign = MINUS; in bc_str2num()
86 (*num)->n_sign = PLUS; in bc_str2num()
90 nptr = (*num)->n_value; in bc_str2num()
108 if (bc_is_zero (*num)) in bc_str2num()
109 (*num)->n_sign = PLUS; in bc_str2num()
H A Dnearzero.c45 bc_is_near_zero (num, scale) in bc_is_near_zero() argument
46 bc_num num; in bc_is_near_zero()
53 if (scale > num->n_scale)
54 scale = num->n_scale;
57 count = num->n_len + scale;
58 nptr = num->n_value;
H A Doutput.c91 if (bc_is_zero (num)) in bc_out_num()
97 nptr = num->n_value; in bc_out_num()
98 if (num->n_len > 1 || *nptr != 0) in bc_out_num()
99 for (index=num->n_len; index>0; index--) in bc_out_num()
104 if (leading_zero && bc_is_zero (num)) in bc_out_num()
108 if (num->n_scale > 0) in bc_out_num()
118 if (leading_zero && bc_is_zero (num)) in bc_out_num()
124 bc_divide (num, BCG(_one_), &int_part, 0); in bc_out_num()
128 bc_sub (num, int_part, &frac_part, 0); in bc_out_num()
166 if (num->n_scale > 0) in bc_out_num()
[all …]
H A Dint2num.c44 bc_int2num (num, val) in bc_int2num() argument
45 bc_num *num; in bc_int2num()
74 bc_free_num (num);
75 *num = bc_new_num (ix, 0);
76 if (neg) (*num)->n_sign = MINUS;
79 vptr = (*num)->n_value;
/PHP-8.1/Zend/
H A Dzend_bitset.h68 if ((num & 0xffffffff) == 0) {n += 32; num = num >> Z_UL(32);}
70 if ((num & 0x0000ffff) == 0) {n += 16; num = num >> 16;}
71 if ((num & 0x000000ff) == 0) {n += 8; num = num >> 8;}
72 if ((num & 0x0000000f) == 0) {n += 4; num = num >> 4;}
73 if ((num & 0x00000003) == 0) {n += 2; num = num >> 2;}
105 x = num >> 32; if (x != 0) {n -= 32; num = x;}
109 x = num >> 16; if (x != 0) {n -= 16; num = x;}
110 x = num >> 8; if (x != 0) {n -= 8; num = x;}
111 x = num >> 4; if (x != 0) {n -= 4; num = x;}
112 x = num >> 2; if (x != 0) {n -= 2; num = x;}
[all …]
/PHP-8.1/ext/standard/
H A Dmath.c315 double num; in PHP_FUNCTION() local
327 double num; in PHP_FUNCTION() local
339 double num; in PHP_FUNCTION() local
351 double num; in PHP_FUNCTION() local
363 double num; in PHP_FUNCTION() local
375 double num; in PHP_FUNCTION() local
400 double num; in PHP_FUNCTION() local
412 double num; in PHP_FUNCTION() local
424 double num; in PHP_FUNCTION() local
697 num = num * base + digit; in _php_math_basetolong()
[all …]
/PHP-8.1/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";
/PHP-8.1/ext/pdo_sqlite/tests/
H A Dbug_63916-2.phpt11 $num = PHP_INT_MAX; // 32 bits
13 $conn->query('CREATE TABLE users (id INTEGER NOT NULL, num INTEGER NOT NULL, PRIMARY KEY(id))');
15 $stmt = $conn->prepare('insert into users (id, num) values (:id, :num)');
17 $stmt->bindValue(':num', $num, PDO::PARAM_INT);
20 $stmt = $conn->query('SELECT num FROM users');
23 var_dump($num,$result[0]);
H A Dbug_63916.phpt11 $num = 100004313234244; // exceeds 32 bits
13 $conn->query('CREATE TABLE users (id INTEGER NOT NULL, num INTEGER NOT NULL, PRIMARY KEY(id))');
15 $stmt = $conn->prepare('insert into users (id, num) values (:id, :num)');
17 $stmt->bindValue(':num', $num, PDO::PARAM_INT);
20 $stmt = $conn->query('SELECT num FROM users');
23 var_dump($num,$result[0]);
/PHP-8.1/ext/gmp/
H A Dgmp.stub.php12 function gmp_init(int|string $num, int $base = 0): GMP {} argument
18 function gmp_intval(GMP|int|string $num): int {} argument
45 function gmp_neg(GMP|int|string $num): GMP {} argument
47 function gmp_abs(GMP|int|string $num): GMP {} argument
49 function gmp_fact(GMP|int|string $num): GMP {} argument
51 function gmp_sqrt(GMP|int|string $num): GMP {} argument
57 function gmp_sqrtrem(GMP|int|string $num): array {} argument
97 function gmp_sign(GMP|int|string $num): int {} argument
109 function gmp_com(GMP|int|string $num): GMP {} argument
115 function gmp_clrbit(GMP $num, int $index): void {} argument
[all …]
/PHP-8.1/ext/sqlite3/tests/
H A Dbug63921-32bit.phpt11 $num = PHP_INT_MAX; // 32 bits
13 $conn->query('CREATE TABLE users (id INTEGER NOT NULL, num INTEGER NOT NULL, PRIMARY KEY(id))');
15 $stmt = $conn->prepare('insert into users (id, num) values (:id, :num)');
17 $stmt->bindValue(':num', $num, SQLITE3_INTEGER);
20 $stmt = $conn->query('SELECT num FROM users');
23 var_dump($num,$result[0]);

Completed in 36 milliseconds

12345678910>>...14