Mercurial > vba-linux
view src/win32/7zip/7z/C/RotateDefs.h @ 6:458a4f18f3cd
working on lua generation
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:48:33 -0600 |
parents | f9f4f1b99eed |
children |
line wrap: on
line source
1 /* RotateDefs.h -- Rotate functions2 2008-08-053 Igor Pavlov4 Public domain */6 #ifndef __ROTATEDEFS_H7 #define __ROTATEDEFS_H9 #ifdef _MSC_VER11 #include <stdlib.h>12 #define rotlFixed(x, n) _rotl((x), (n))13 #define rotrFixed(x, n) _rotr((x), (n))15 #else17 #define rotlFixed(x, n) (((x) << (n)) | ((x) >> (32 - (n))))18 #define rotrFixed(x, n) (((x) >> (n)) | ((x) << (32 - (n))))20 #endif22 #endif