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

Function float8_mul

src/include/utils/float.h:206–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206static inline float8
207float8_mul(const float8 val1, const float8 val2)
208{
209 float8 result;
210
211 result = val1 * val2;
212 if (unlikely(isinf(result)) && !isinf(val1) && !isinf(val2))
213 float_overflow_error();
214 if (unlikely(result == 0.0) && val1 != 0.0 && val2 != 0.0)
215 float_underflow_error();
216
217 return result;
218}
219
220static inline float4
221float4_div(const float4 val1, const float4 val2)

Callers 15

box_arFunction · 0.50
line_constructFunction · 0.50
line_perpFunction · 0.50
line_eqFunction · 0.50
line_distanceFunction · 0.50
line_interpt_lineFunction · 0.50
path_areaFunction · 0.50
line_contain_pointFunction · 0.50
point_mul_pointFunction · 0.50
point_div_pointFunction · 0.50
circle_mul_ptFunction · 0.50
circle_diameterFunction · 0.50

Calls 2

float_overflow_errorFunction · 0.85
float_underflow_errorFunction · 0.85

Tested by

no test coverage detected