From e9ddc97b9aa8acf323212d55f45f1d6e6e4f8ab3 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 10 Aug 2025 08:40:35 -0700 Subject: [PATCH] Remove unnecesary constexpr and inline more --- 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 f49d3beb..af9480f8 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -174,11 +174,11 @@ inline auto operator==(basic_fp x, basic_fp y) -> bool { } // Compilers should be able to optimize this into the ror instruction. -FMT_CONSTEXPR inline auto rotr(uint32_t n, uint32_t r) noexcept -> uint32_t { +FMT_INLINE auto rotr(uint32_t n, uint32_t r) noexcept -> uint32_t { r &= 31; return (n >> r) | (n << (32 - r)); } -FMT_CONSTEXPR inline auto rotr(uint64_t n, uint32_t r) noexcept -> uint64_t { +FMT_INLINE auto rotr(uint64_t n, uint32_t r) noexcept -> uint64_t { r &= 63; return (n >> r) | (n << (64 - r)); }