Branch: Tag:

2016-05-17

2016-05-17 14:54:47 by Per Hedbor <ph@opera.com>

Keep pow(float,float) as float even when the calculation overflows

3778:       res_is_powf:    { -  double r = pow( a, b ); -  if( r != HUGE_VAL ) -  { +     sp-=2; -  push_float( r ); +  push_float( pow( a, b ) );    return;    } -  } -  /* When float overflows, switch to bignums. FIXME: mpf? */ -  /* fallthrough */ -  +     default:    stack_swap();    convert_stack_top_to_bignum();