diff options
Diffstat (limited to 'src/lib/utils/simd/simd_32.h')
-rw-r--r-- | src/lib/utils/simd/simd_32.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/simd/simd_32.h b/src/lib/utils/simd/simd_32.h index ee87c9c3d..58d76c277 100644 --- a/src/lib/utils/simd/simd_32.h +++ b/src/lib/utils/simd/simd_32.h @@ -296,13 +296,13 @@ class SIMD_4x32 final #if defined(BOTAN_TARGET_ARCH_IS_ARM64) - BOTAN_IF_CONSTEXPR(ROT == 8) + if constexpr(ROT == 8) { const uint8_t maskb[16] = { 3,0,1,2, 7,4,5,6, 11,8,9,10, 15,12,13,14 }; const uint8x16_t mask = vld1q_u8(maskb); return SIMD_4x32(vreinterpretq_u32_u8(vqtbl1q_u8(vreinterpretq_u8_u32(m_simd), mask))); } - else BOTAN_IF_CONSTEXPR(ROT == 16) + else if constexpr(ROT == 16) { return SIMD_4x32(vreinterpretq_u32_u16(vrev32q_u16(vreinterpretq_u16_u32(m_simd)))); } |