/PHP-5.5/ext/standard/tests/math/ |
H A D | round.phpt | 7 define('LONG_MIN', -LONG_MAX - 1); 8 printf("%d,%d,%d,%d\n",is_int(LONG_MIN ),is_int(LONG_MAX ), 9 is_int(LONG_MIN-1),is_int(LONG_MAX+1)); 16 LONG_MIN ~== ceil(LONG_MIN - 0.5) 17 LONG_MIN+1 ~== ceil(LONG_MIN + 0.5) 18 LONG_MIN-1 ~== round(LONG_MIN - 0.6) 19 LONG_MIN ~== round(LONG_MIN - 0.4) 20 LONG_MIN ~== round(LONG_MIN + 0.4) 21 LONG_MIN+1 ~== round(LONG_MIN + 0.6) 22 LONG_MIN-1 ~== floor(LONG_MIN - 0.5) [all …]
|
H A D | pow.phpt | 7 define('LONG_MIN', -LONG_MAX - 1); 8 printf("%d,%d,%d,%d\n",is_int(LONG_MIN ),is_int(LONG_MAX ), 9 is_int(LONG_MIN-1),is_int(LONG_MAX+1)); 126 LONG_MIN+1 === pow(LONG_MIN+1,1) 128 (LONG_MIN+1)*(LONG_MIN+1) ~== pow(LONG_MIN+1,2) 130 (float)(LONG_MIN+1) === pow(LONG_MIN+1,1.0) 132 (LONG_MIN+1)*(LONG_MIN+1) ~== pow(LONG_MIN+1,2.0) 134 LONG_MIN === pow(LONG_MIN,1) 136 LONG_MIN*LONG_MIN ~== pow(LONG_MIN,2) 138 (float)LONG_MIN === pow(LONG_MIN,1.0) [all …]
|
H A D | abs.phpt | 7 define('LONG_MIN', -LONG_MAX - 1); 8 printf("%d,%d,%d,%d\n",is_int(LONG_MIN ),is_int(LONG_MAX ), 9 is_int(LONG_MIN-1),is_int(LONG_MAX+1)); 16 -LONG_MIN+1 === abs(LONG_MIN-1) 17 -LONG_MIN === abs(LONG_MIN) 18 -(LONG_MIN+1) === abs(LONG_MIN+1)
|
/PHP-5.5/tests/lang/ |
H A D | bug24054.phpt | 7 define('LONG_MIN', -LONG_MAX - 1); 8 printf("%d,%d,%d,%d\n",is_int(LONG_MIN ),is_int(LONG_MAX ), 9 is_int(LONG_MIN-1),is_int(LONG_MAX+1));
|
/PHP-5.5/ext/sybase_ct/tests/ |
H A D | test_long.phpt | 2 Sybase-CT select LONG_MAX / LONG_MIN 15 define('LONG_MIN', -LONG_MAX - 1); 25 var_dump(sybase_query('insert test_long values ('.(LONG_MIN + 1).')')); 26 var_dump(sybase_query('insert test_long values ('.(LONG_MIN).')')); 27 var_dump(sybase_query('insert test_long values ('.(LONG_MIN - 1).')'));
|
H A D | test_types.phpt | 15 define('LONG_MIN', -LONG_MAX - 1); 20 '.(LONG_MIN).' as "integer_min", 21 '.(LONG_MIN - 1).' as "integer_min_exceed",
|
/PHP-5.5/ext/calendar/ |
H A D | julian.c | 171 if (sdn > (LONG_MAX - JULIAN_SDN_OFFSET * 4 + 1) / 4 || sdn < LONG_MIN / 4) { in SdnToJulian()
|
/PHP-5.5/ext/intl/collator/ |
H A D | collator_is_numeric.c | 187 cutoff = neg ? -(unsigned long)LONG_MIN : LONG_MAX; 211 acc = neg ? LONG_MIN : LONG_MAX;
|
/PHP-5.5/ext/date/lib/ |
H A D | timelib.h | 48 #ifndef LONG_MIN 49 #define LONG_MIN (- LONG_MAX - 1) macro
|
H A D | timelib.c | 185 if (ts < LONG_MIN || ts > LONG_MAX) { in timelib_date_to_int()
|
/PHP-5.5/Zend/ |
H A D | zend_multiply.h | 75 if (__result > LONG_MAX || __result < LONG_MIN) { \
|
H A D | zend_operators.h | 78 if (d > LONG_MAX || d < LONG_MIN) { in END_EXTERN_C() 96 if (d >= LONG_MAX || d < LONG_MIN) { 579 if (UNEXPECTED(Z_LVAL_P(op1) == LONG_MIN)) { in fast_decrement_function() 581 Z_DVAL_P(op1) = (double)LONG_MIN - 1.0; in fast_decrement_function() 805 } else if (UNEXPECTED(Z_LVAL_P(op2) == -1 && Z_LVAL_P(op1) == LONG_MIN)) { in fast_div_function() 807 Z_DVAL_P(result) = (double) LONG_MIN / -1; in fast_div_function()
|
H A D | Zend.m4 | 118 double d = (double) LONG_MIN * LONG_MIN + 2e9; 124 double correct = 18e18 - ((double) LONG_MIN * -2); /* Subtract ULONG_MAX + 1 */
|
H A D | zend.h | 265 #ifndef LONG_MIN 266 #define LONG_MIN (- LONG_MAX - 1) macro
|
H A D | zend_operators.c | 972 } else if (Z_LVAL_P(op2) == -1 && Z_LVAL_P(op1) == LONG_MIN) { in div_function() 974 ZVAL_DOUBLE(result, (double) LONG_MIN / -1); in div_function() 1919 if (Z_LVAL_P(op1) == LONG_MIN) { in decrement_function() 1938 if (lval == LONG_MIN) { in decrement_function()
|
H A D | zend_API.c | 347 } else if (d < LONG_MIN) { in zend_parse_arg_impl() 348 *p = LONG_MIN; in zend_parse_arg_impl() 363 } else if (Z_DVAL_PP(arg) < LONG_MIN) { in zend_parse_arg_impl() 364 *p = LONG_MIN; in zend_parse_arg_impl()
|
/PHP-5.5/main/ |
H A D | php.h | 219 #ifndef LONG_MIN 220 #define LONG_MIN (- LONG_MAX - 1) macro
|
/PHP-5.5/ext/intl/formatter/ |
H A D | formatter_parse.c | 88 if(val64 > LONG_MAX || val64 < LONG_MIN) { in PHP_FUNCTION()
|
/PHP-5.5/ext/interbase/ |
H A D | php_ibase_udf.c | 254 if (argv[i]->dsc_scale == 0 && l <= LONG_MAX && l >= LONG_MIN) { in call_php()
|
H A D | interbase.c | 1458 if (result < LONG_MIN || result > LONG_MAX) { in PHP_FUNCTION()
|
/PHP-5.5/ext/standard/ |
H A D | math.c | 289 if (Z_LVAL_PP(value) == LONG_MIN) { in PHP_FUNCTION() 290 RETURN_DOUBLE(-(double)LONG_MIN); in PHP_FUNCTION()
|
/PHP-5.5/ext/mysqlnd/ |
H A D | mysqlnd_result_meta.c | 78 if (*idx!=LONG_MIN) { in mysqlnd_is_key_numeric()
|
H A D | mysqlnd_ps_codec.c | 613 if (Z_DVAL_P(tmp_data_copy) > LONG_MAX || Z_DVAL_P(tmp_data_copy) < LONG_MIN) { in mysqlnd_stmt_execute_store_params()
|
/PHP-5.5/ext/filter/ |
H A D | logical_filters.c | 106 } else if ( sign && ctx_value >= (LONG_MIN+digit)/10) { in php_filter_parse_int()
|
/PHP-5.5/ |
H A D | README.PARAMETER_PARSING_API | 62 L - long, limits out-of-range numbers to LONG_MAX/LONG_MIN (long)
|