A simple macro to rotate the bits of an unsigned 32-bit value. using shift-left and shift-right we can achieve rotate-left and rotate-right. #define rotlFixed(x,n) (((x) << (n)) | ((x) >> (32 – (n)))) #define rotrFixed(x,n) (((x) >> (n)) | ((x) << (32 – (n)))) The macro above can be trivially converted to a function and [...]
-
Recent Posts
- ASP.NET MVC Model Binding Form Inputs To Action Parameters
- Notes on MVC routes mapping
- Things I’d love to learn more about
- "Remember Me" Doesn’t work in ASP.NET
- Regex Inverse Matching
- On Defensive Programming
- Getting Around Dynamic Casting To Achieve Better Design And Performance
- Parsing SQL Statements With Regex
- My Favorite Geek Quotes
- jscalendar shows at the top of the screen in IE7
Archives
Blogroll
-
Blog Stats
- 3,781 hits