Revision 63a654bb fpu/softfloat-native.c
b/fpu/softfloat-native.c | ||
---|---|---|
221 | 221 |
/*---------------------------------------------------------------------------- |
222 | 222 |
| Software IEC/IEEE double-precision operations. |
223 | 223 |
*----------------------------------------------------------------------------*/ |
224 |
#if ( defined(__sun__) && ( HOST_SOLARIS < 10 )) |
|
225 |
static inline float64 trunc(float64 x) |
|
226 |
{ |
|
227 |
return x < 0 ? -floor(-x) : floor(x); |
|
228 |
} |
|
229 |
#endif |
|
224 | 230 |
float64 float64_trunc_to_int( float64 a STATUS_PARAM ) |
225 | 231 |
{ |
226 | 232 |
return trunc(a); |
Also available in: Unified diff