MCPcopy Create free account
hub / github.com/apache/impala / abs

Function abs

be/src/runtime/multi-precision.h:121–121  ·  view source on GitHub ↗

abs() is not defined for int128_t. Name it abs() so it can be compatible with native int types in templates.

Source from the content-addressed store, hash-verified

119/// abs() is not defined for int128_t. Name it abs() so it can be compatible with
120/// native int types in templates.
121inline int128_t abs(const int128_t& x) { return (x < 0) ? -x : x; }
122
123/// Get the high and low bits of an int128_t
124inline uint64_t HighBits(int128_t x) {

Callers 15

compare_query_resultsMethod · 0.85
floats_are_equalMethod · 0.85
searchMethod · 0.85
result_equalsMethod · 0.85
verify_agg_resultMethod · 0.85
prettyprintFunction · 0.85
appx_equalsMethod · 0.85
compare_floatFunction · 0.85
test_jvm_mem_trackingMethod · 0.85

Calls

no outgoing calls

Tested by 13

result_equalsMethod · 0.68
verify_agg_resultMethod · 0.68
appx_equalsMethod · 0.68
compare_floatFunction · 0.68
test_jvm_mem_trackingMethod · 0.68
DoSubscriberUpdateMethod · 0.68
TESTFunction · 0.68
FuzzyCompareFunction · 0.68