We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58946ee commit eb97599Copy full SHA for eb97599
libc/src/__support/number_pair.h
@@ -21,8 +21,8 @@ template <typename T> struct NumberPair {
21
};
22
23
template <typename T>
24
-cpp::enable_if_t<cpp::is_integral_v<T> && cpp::is_unsigned_v<T>, NumberPair<T>>
25
-split(T a) {
+cpp::enable_if_t<cpp::is_integral_v<T> && cpp::is_unsigned_v<T>,
+ NumberPair<T>> constexpr split(T a) {
26
constexpr size_t HALF_BIT_WIDTH = sizeof(T) * 4;
27
constexpr T LOWER_HALF_MASK = (T(1) << HALF_BIT_WIDTH) - T(1);
28
NumberPair<T> result;
0 commit comments