Revision e6e5906b fpu/softfloat.c

b/fpu/softfloat.c
2483 2483

  
2484 2484
}
2485 2485

  
2486
float64 float64_trunc_to_int( float64 a STATUS_PARAM)
2487
{
2488
    int oldmode;
2489
    float64 res;
2490
    oldmode = STATUS(float_rounding_mode);
2491
    STATUS(float_rounding_mode) = float_round_to_zero;
2492
    res = float64_round_to_int(a STATUS_VAR);
2493
    STATUS(float_rounding_mode) = oldmode;
2494
    return res;
2495
}
2496

  
2486 2497
/*----------------------------------------------------------------------------
2487 2498
| Returns the result of adding the absolute values of the double-precision
2488 2499
| floating-point values `a' and `b'.  If `zSign' is 1, the sum is negated

Also available in: Unified diff