From dba99bc860825468483d98cf00ab3e972b3e01d7 Mon Sep 17 00:00:00 2001 From: Junekey Jeon Date: Sun, 13 Feb 2022 03:42:01 -0800 Subject: [PATCH] Revert adding constexpr to rotr to satisfy C++11 compilers --- include/fmt/format-inl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h index a9af399c..690ca261 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -818,11 +818,11 @@ struct uint128_wrapper { }; // Compilers should be able to optimize this into the ror instruction. -inline constexpr uint32_t rotr(uint32_t n, uint32_t r) noexcept { +inline uint32_t rotr(uint32_t n, uint32_t r) noexcept { r &= 31; return (n >> r) | (n << (32 - r)); } -inline constexpr uint64_t rotr(uint64_t n, uint32_t r) noexcept { +inline uint64_t rotr(uint64_t n, uint32_t r) noexcept { r &= 63; return (n >> r) | (n << (64 - r)); }