From ac0f94c23ac216bdefee446fb62b81c812eb2756 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 23 Jul 2015 04:06:10 -0400 Subject: [PATCH] Removed branch from rotlVariable. The mask ensures it stays well defined --- misc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc.h b/misc.h index 9017d5a3..05856f34 100644 --- a/misc.h +++ b/misc.h @@ -895,12 +895,12 @@ template<> inline byte rotrMod(byte x, unsigned int y) template<> inline word32 rotlFixed(word32 x, unsigned int y) { - return y ? __rlwinm(x,y,0,31) : x; + return (__rlwinm(x,y,0,31)); } template<> inline word32 rotrFixed(word32 x, unsigned int y) { - return y ? __rlwinm(x,32-y,0,31) : x; + return (__rlwinm(x,32-y,0,31)); } template<> inline word32 rotlVariable(word32 x, unsigned int y)