We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb2ae71 commit 4895fd5Copy full SHA for 4895fd5
1 file changed
jsrc/j.h
@@ -2260,8 +2260,8 @@ extern I CTLZI_(UI,UI4*);
2260
#define BLSR(x) ((x)&~BLSI(x))
2261
#endif
2262
2263
-static inline UI4 rol32(UI4 x,I s){ R (x<<s)|(x>>(32-x)); }
2264
-static inline UI4 ror32(UI4 x,I s){ R (x>>s)|(x<<(32-x)); }
+static inline UI4 rol32(UI4 x,I s){ R (x<<s)|(x>>(32-s)); }
+static inline UI4 ror32(UI4 x,I s){ R (x>>s)|(x<<(32-s)); }
2265
2266
// Set these switches for testing
2267
#define AUDITBP 0 // Verify that bp() returns expected data
0 commit comments