Revision dfe5fff3 fpu/softfloat-native.c
b/fpu/softfloat-native.c | ||
---|---|---|
2 | 2 |
context is supported */ |
3 | 3 |
#include "softfloat.h" |
4 | 4 |
#include <math.h> |
5 |
#if defined(HOST_SOLARIS)
|
|
5 |
#if defined(CONFIG_SOLARIS)
|
|
6 | 6 |
#include <fenv.h> |
7 | 7 |
#endif |
8 | 8 |
|
... | ... | |
10 | 10 |
{ |
11 | 11 |
STATUS(float_rounding_mode) = val; |
12 | 12 |
#if defined(HOST_BSD) && !defined(__APPLE__) || \ |
13 |
(defined(HOST_SOLARIS) && HOST_SOLARIS < 10)
|
|
13 |
(defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10)
|
|
14 | 14 |
fpsetround(val); |
15 | 15 |
#elif defined(__arm__) |
16 | 16 |
/* nothing to do */ |
... | ... | |
26 | 26 |
} |
27 | 27 |
#endif |
28 | 28 |
|
29 |
#if defined(HOST_BSD) || (defined(HOST_SOLARIS) && HOST_SOLARIS < 10) |
|
29 |
#if defined(HOST_BSD) || \ |
|
30 |
(defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10) |
|
30 | 31 |
#define lrint(d) ((int32_t)rint(d)) |
31 | 32 |
#define llrint(d) ((int64_t)rint(d)) |
32 | 33 |
#define lrintf(f) ((int32_t)rint(f)) |
... | ... | |
34 | 35 |
#define sqrtf(f) ((float)sqrt(f)) |
35 | 36 |
#define remainderf(fa, fb) ((float)remainder(fa, fb)) |
36 | 37 |
#define rintf(f) ((float)rint(f)) |
37 |
#if !defined(__sparc__) && defined(HOST_SOLARIS) && HOST_SOLARIS < 10 |
|
38 |
#if !defined(__sparc__) && \ |
|
39 |
(defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10) |
|
38 | 40 |
extern long double rintl(long double); |
39 | 41 |
extern long double scalbnl(long double, int); |
40 | 42 |
|
... | ... | |
349 | 351 |
/*---------------------------------------------------------------------------- |
350 | 352 |
| Software IEC/IEEE double-precision operations. |
351 | 353 |
*----------------------------------------------------------------------------*/ |
352 |
#if defined(__sun__) && defined(HOST_SOLARIS) && HOST_SOLARIS < 10 |
|
354 |
#if defined(__sun__) && \ |
|
355 |
(defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10) |
|
353 | 356 |
static inline float64 trunc(float64 x) |
354 | 357 |
{ |
355 | 358 |
return x < 0 ? -floor(-x) : floor(x); |
Also available in: Unified diff