MCPcopy Create free account
hub / github.com/apache/cloudberry / get_float8_nan

Function get_float8_nan

src/include/utils/float.h:121–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121static inline float8
122get_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

Callers 15

line_closept_pointFunction · 0.50
pg_hypotFunction · 0.50
complex_decode_doubleFunction · 0.50
pg_cpowFunction · 0.50
numeric2complexFunction · 0.50
numeric_li_fractionFunction · 0.50
numeric_float8Function · 0.50
dpowFunction · 0.50
dacosFunction · 0.50
dasinFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected