From 67b1e65d9705d0c47328060718c354fb780d0c99 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 8 Jul 2018 00:33:18 +0200 Subject: [PATCH] Update comment --- m-core.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/m-core.h b/m-core.h index b38c3331..a6f57f04 100644 --- a/m-core.h +++ b/m-core.h @@ -1385,7 +1385,11 @@ #define M_HASH_FINAL(hash) ( (hash) >> (sizeof(size_t)*CHAR_BIT/2) | (hash) ) /* Safe, efficient, and portable Rotate: - It should be recognized by any compiler and generate a single roll instruction */ + It should be recognized by any compiler and generate a single roll instruction. + If support for n==0 is needed, we can write: + return (x<>(-n&31)); + but compilers are less likely to generate a roll instruction. + */ static inline uint32_t m_core_rotl32a (uint32_t x, uint32_t n) { assert (n > 0 && n<32);