Revision dfe5fff3 fpu/softfloat-native.h
b/fpu/softfloat-native.h | ||
---|---|---|
1 | 1 |
/* Native implementation of soft float functions */ |
2 | 2 |
#include <math.h> |
3 | 3 |
|
4 |
#if (defined(HOST_BSD) && !defined(__APPLE__)) || defined(HOST_SOLARIS)
|
|
4 |
#if (defined(HOST_BSD) && !defined(__APPLE__)) || defined(CONFIG_SOLARIS)
|
|
5 | 5 |
#include <ieeefp.h> |
6 | 6 |
#define fabsf(f) ((float)fabs(f)) |
7 | 7 |
#else |
... | ... | |
19 | 19 |
* Solaris 10 with GCC4 does not need these macros as they |
20 | 20 |
* are defined in <iso/math_c99.h> with a compiler directive |
21 | 21 |
*/ |
22 |
#if defined(HOST_SOLARIS) && (( HOST_SOLARIS <= 9 ) || ((HOST_SOLARIS >= 10) \ |
|
23 |
&& (__GNUC__ < 4))) \ |
|
22 |
#if defined(CONFIG_SOLARIS) && \ |
|
23 |
((CONFIG_SOLARIS_VERSION <= 9 ) || \ |
|
24 |
((CONFIG_SOLARIS_VERSION >= 10) && (__GNUC__ < 4))) \ |
|
24 | 25 |
|| (defined(__OpenBSD__) && (OpenBSD < 200811)) |
25 | 26 |
/* |
26 | 27 |
* C99 7.12.3 classification macros |
... | ... | |
111 | 112 |
/*---------------------------------------------------------------------------- |
112 | 113 |
| Software IEC/IEEE floating-point rounding mode. |
113 | 114 |
*----------------------------------------------------------------------------*/ |
114 |
#if (defined(HOST_BSD) && !defined(__APPLE__)) || defined(HOST_SOLARIS)
|
|
115 |
#if (defined(HOST_BSD) && !defined(__APPLE__)) || defined(CONFIG_SOLARIS)
|
|
115 | 116 |
#if defined(__OpenBSD__) |
116 | 117 |
#define FE_RM FP_RM |
117 | 118 |
#define FE_RP FP_RP |
Also available in: Unified diff