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

Function Sign

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

Source from the content-addressed store, hash-verified

155/// unsigned types. It compiles out in optimized builds into the expected increment.
156template <typename T>
157constexpr static inline T Sign(const T& value) {
158 return 1 | ((value >> (ArithmeticUtil::UnsignedWidth<T>() - 1)) >> 1);
159}
160
161template <>
162inline int256_t Sign(const int256_t& value) {

Callers 3

ToIntMethod · 0.85
DivideMethod · 0.85
ScaleDownAndRoundMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected