acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
api_rotate.h
1/* RotateDefs.h -- Rotate functions
22009-02-07 : Igor Pavlov : Public domain */
3// from 7-zip on 2012-12-23, lunch time
4#pragma once
5
6
7
8
9#ifdef _MSC_VER
10
11
12
13#define rotlFixed(x, n) _rotl((x), (n))
14#define rotrFixed(x, n) _rotr((x), (n))
15
16#else
17
18#define rotlFixed(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
19#define rotrFixed(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
20
21#endif
22
23
24