softfloat.c (1d6bda356153c82e100680d9f2165e32c8fb1330) | softfloat.c (e6e5906b6e0a81718066ca43aef57515026c6624) |
---|---|
1 2/*============================================================================ 3 4This C source file is part of the SoftFloat IEC/IEEE Floating-point Arithmetic 5Package, Release 2b. 6 7Written by John R. Hauser. This work was made possible in part by the 8International Computer Science Institute, located at Suite 600, 1947 Center --- 2469 unchanged lines hidden (view full) --- 2478 } 2479 } 2480 z &= ~ roundBitsMask; 2481 if ( z != a ) STATUS(float_exception_flags) |= float_flag_inexact; 2482 return z; 2483 2484} 2485 | 1 2/*============================================================================ 3 4This C source file is part of the SoftFloat IEC/IEEE Floating-point Arithmetic 5Package, Release 2b. 6 7Written by John R. Hauser. This work was made possible in part by the 8International Computer Science Institute, located at Suite 600, 1947 Center --- 2469 unchanged lines hidden (view full) --- 2478 } 2479 } 2480 z &= ~ roundBitsMask; 2481 if ( z != a ) STATUS(float_exception_flags) |= float_flag_inexact; 2482 return z; 2483 2484} 2485 |
2486float64 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/*---------------------------------------------------------------------------- 2487| Returns the result of adding the absolute values of the double-precision 2488| floating-point values `a' and `b'. If `zSign' is 1, the sum is negated 2489| before being returned. `zSign' is ignored if the result is a NaN. 2490| The addition is performed according to the IEC/IEEE Standard for Binary 2491| Floating-Point Arithmetic. 2492*----------------------------------------------------------------------------*/ 2493 --- 2827 unchanged lines hidden --- | 2497/*---------------------------------------------------------------------------- 2498| Returns the result of adding the absolute values of the double-precision 2499| floating-point values `a' and `b'. If `zSign' is 1, the sum is negated 2500| before being returned. `zSign' is ignored if the result is a NaN. 2501| The addition is performed according to the IEC/IEEE Standard for Binary 2502| Floating-Point Arithmetic. 2503*----------------------------------------------------------------------------*/ 2504 --- 2827 unchanged lines hidden --- |