acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
api_rotate.h
1
/* RotateDefs.h -- Rotate functions
2
2009-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
prototype
api
api_rotate.h
Generated by
1.17.0