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

Function get_float8_infinity

src/include/utils/float.h:92–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92static inline float8
93get_float8_infinity(void)
94{
95#ifdef INFINITY
96 /* C99 standard way */
97 return (float8) INFINITY;
98#else
99
100 /*
101 * On some platforms, HUGE_VAL is an infinity, elsewhere it's just the
102 * largest normal float8. We assume forcing an overflow will get us a
103 * true infinity.
104 */
105 return (float8) (HUGE_VAL * HUGE_VAL);
106#endif
107}
108
109static inline float4
110get_float4_nan(void)

Callers 15

NonFiniteTimestampTzPartFunction · 0.50
compute_range_statsFunction · 0.50
line_slFunction · 0.50
line_invslFunction · 0.50
point_slFunction · 0.50
point_invslFunction · 0.50
pg_hypotFunction · 0.50
initRectBoxFunction · 0.50
complex_decode_doubleFunction · 0.50
complex_lnFunction · 0.50
get_distanceFunction · 0.50
numeric_float8Function · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected