Files
easy7zip/CPP/7zip/Crypto/Hash/RotateDefs.h
Igor Pavlov d9666cf046 4.44 beta
2016-05-28 00:15:49 +01:00

20 lines
327 B
C
Executable File

// RotateDefs.h
#ifndef __ROTATEDEFS_H
#define __ROTATEDEFS_H
#ifdef _MSC_VER
#include <stddef.h>
#define rotlFixed(x, n) _rotl((x), (n))
#define rotrFixed(x, n) _rotr((x), (n))
#else
#define rotlFixed(x, n) (((x) << (n)) | ((x) >> (32 - (n))))
#define rotrFixed(x, n) (((x) >> (n)) | ((x) << (32 - (n))))
#endif
#endif