Branch: Tag:

2016-01-14

2016-01-14 22:04:17 by Martin Nilsson <nilsson@fastmail.com>

Simplified MAKE_INF and MAKE_NAN. Hopefully not too much.

2529:       if(!res)    { -  DECLARE_INF -  DECLARE_NAN -  +     switch(num)    {    case Pike_FP_SNAN: /* Signal Not A Number */
2540:    break;       case Pike_FP_NINF: /* Negative infinity */ -  push_float((FLOAT_TYPE)MAKE_INF(-1)); +  push_float(-(FLOAT_TYPE)MAKE_INF());    break;       case Pike_FP_PINF: /* Positive infinity */ -  push_float((FLOAT_TYPE)MAKE_INF(1)); +  push_float((FLOAT_TYPE)MAKE_INF());    break;       case Pike_FP_NZERO: /* Negative Zero */