Searched refs:num_str (Results 1 – 2 of 2) sorted by relevance
/php-src/ext/gmp/ |
H A D | gmp.c | 647 const char *num_str = ZSTR_VAL(val); in convert_zstr_to_gmp() local 651 while (isspace(*num_str)) { in convert_zstr_to_gmp() 652 ++num_str; in convert_zstr_to_gmp() 656 if (num_len >= 2 && num_str[0] == '0') { in convert_zstr_to_gmp() 657 if ((base == 0 || base == 16) && (num_str[1] == 'x' || num_str[1] == 'X')) { in convert_zstr_to_gmp() 660 } else if ((base == 0 || base == 8) && (num_str[1] == 'o' || num_str[1] == 'O')) { in convert_zstr_to_gmp() 663 } else if ((base == 0 || base == 2) && (num_str[1] == 'b' || num_str[1] == 'B')) { in convert_zstr_to_gmp() 669 int gmp_ret = mpz_set_str(gmp_number, (skip_lead ? &num_str[2] : num_str), (int) base); in convert_zstr_to_gmp()
|
/php-src/ext/bcmath/ |
H A D | bcmath.c | 1421 zend_string *num_str = NULL; in bcmath_number_calc_method() local 1427 BCMATH_PARAM_NUMBER_OR_STR_OR_LONG(num_obj, bcmath_number_ce, num_str, num_lval); in bcmath_number_calc_method() 1434 …if (bc_num_from_obj_or_str_or_long_with_err(&num, &num_full_scale, num_obj, num_str, num_lval, 1) … in bcmath_number_calc_method() 1522 zend_string *num_str = NULL; in PHP_METHOD() local 1528 BCMATH_PARAM_NUMBER_OR_STR_OR_LONG(num_obj, bcmath_number_ce, num_str, num_lval); in PHP_METHOD() 1535 …if (bc_num_from_obj_or_str_or_long_with_err(&num, &num_full_scale, num_obj, num_str, num_lval, 1) … in PHP_METHOD() 1705 zend_string *num_str = NULL; in PHP_METHOD() local 1711 BCMATH_PARAM_NUMBER_OR_STR_OR_LONG(num_obj, bcmath_number_ce, num_str, num_lval); in PHP_METHOD() 1718 …if (bc_num_from_obj_or_str_or_long_with_err(&num, &num_full_scale, num_obj, num_str, num_lval, 1) … in PHP_METHOD()
|
Completed in 14 milliseconds