| 119 | } |
| 120 | |
| 121 | static inline float8 |
| 122 | get_float8_nan(void) |
| 123 | { |
| 124 | /* (float8) NAN doesn't work on some NetBSD/MIPS releases */ |
| 125 | #if defined(NAN) && !(defined(__NetBSD__) && defined(__mips__)) |
| 126 | /* C99 standard way */ |
| 127 | return (float8) NAN; |
| 128 | #else |
| 129 | /* Assume we can get a NaN via zero divide */ |
| 130 | return (float8) (0.0 / 0.0); |
| 131 | #endif |
| 132 | } |
| 133 | |
| 134 | /* |
| 135 | * Floating-point arithmetic with overflow/underflow reported as errors |
no outgoing calls
no test coverage detected