Skip to content

Commit

Permalink
[libc][NFC] Add missing constexpr (llvm#82007)
Browse files Browse the repository at this point in the history
This is a fix forward for the Fuchsia build bot
https://lab.llvm.org/buildbot/#/builders/98/builds/33515
  • Loading branch information
gchatelet authored Feb 16, 2024
1 parent 58946ee commit eb97599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libc/src/__support/number_pair.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ template <typename T> struct NumberPair {
};

template <typename T>
cpp::enable_if_t<cpp::is_integral_v<T> && cpp::is_unsigned_v<T>, NumberPair<T>>
split(T a) {
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;
Expand Down

0 comments on commit eb97599

Please sign in to comment.