From f6c48dd7e93a4252fe4ddca9631d81da43089afb Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Fri, 16 Feb 2024 16:23:40 +0000 Subject: [PATCH] [libc][NFC] Add missing constexpr This is a fix forward for the Fuchsia build bot https://lab.llvm.org/buildbot/#/builders/98/builds/33515 --- libc/src/__support/number_pair.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/src/__support/number_pair.h b/libc/src/__support/number_pair.h index 934f41806b5f3..ee6667b1299fe 100644 --- a/libc/src/__support/number_pair.h +++ b/libc/src/__support/number_pair.h @@ -21,8 +21,8 @@ template struct NumberPair { }; template -cpp::enable_if_t && cpp::is_unsigned_v, NumberPair> -split(T a) { +cpp::enable_if_t && cpp::is_unsigned_v, + NumberPair> 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 result;