diff options
Diffstat (limited to 'libc/src/__support/number_pair.h')
-rw-r--r-- | libc/src/__support/number_pair.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/libc/src/__support/number_pair.h b/libc/src/__support/number_pair.h index ee6667b..2f713fc 100644 --- a/libc/src/__support/number_pair.h +++ b/libc/src/__support/number_pair.h @@ -20,17 +20,6 @@ template <typename T> struct NumberPair { T hi = T(0); }; -template <typename T> -cpp::enable_if_t<cpp::is_integral_v<T> && cpp::is_unsigned_v<T>, - NumberPair<T>> constexpr split(T a) { - constexpr size_t HALF_BIT_WIDTH = sizeof(T) * 4; - constexpr T LOWER_HALF_MASK = (T(1) << HALF_BIT_WIDTH) - T(1); - NumberPair<T> result; - result.lo = a & LOWER_HALF_MASK; - result.hi = a >> HALF_BIT_WIDTH; - return result; -} - } // namespace LIBC_NAMESPACE #endif // LLVM_LIBC_SRC___SUPPORT_NUMBER_PAIR_H |