diff options
Diffstat (limited to 'rushs/evalexpr/bit_rotation/rol.c')
| -rw-r--r-- | rushs/evalexpr/bit_rotation/rol.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/rushs/evalexpr/bit_rotation/rol.c b/rushs/evalexpr/bit_rotation/rol.c deleted file mode 100644 index 151ebb5..0000000 --- a/rushs/evalexpr/bit_rotation/rol.c +++ /dev/null @@ -1,5 +0,0 @@ -unsigned char rol(unsigned char value, unsigned char roll) -{ - roll %= sizeof(unsigned char) * 8; - return (value << roll) | (value >> (8 * sizeof(unsigned char) - roll)); -} |
