1 /******************************************************************************
2 *  Filename:       sw_ecrypt-machine.h
3 *  Revised:        2016-10-05 12:42:03 +0200 (Wed, 05 Oct 2016)
4 *  Revision:       47308
5 ******************************************************************************/
6 /* ecrypt-machine.h */
7 
8 /*
9  * This file is included by 'ecrypt-portable.h'. It allows to override
10  * the default macros for specific platforms. Please carefully check
11  * the machine code generated by your compiler (with optimisations
12  * turned on) before deciding to edit this file.
13  */
14 
15 /* ------------------------------------------------------------------------- */
16 
17 #if (defined(ECRYPT_DEFAULT_ROT) && !defined(ECRYPT_MACHINE_ROT))
18 
19 #define ECRYPT_MACHINE_ROT
20 
21 #if (defined(WIN32) && defined(_MSC_VER))
22 
23 #undef ROTL32
24 #undef ROTR32
25 #undef ROTL64
26 #undef ROTR64
27 
28 #include <stdlib.h>
29 
30 #define ROTL32(v, n) _lrotl(v, n)
31 #define ROTR32(v, n) _lrotr(v, n)
32 #define ROTL64(v, n) _rotl64(v, n)
33 #define ROTR64(v, n) _rotr64(v, n)
34 
35 #endif
36 
37 #endif
38 
39 /* ------------------------------------------------------------------------- */
40 
41 #if (defined(ECRYPT_DEFAULT_SWAP) && !defined(ECRYPT_MACHINE_SWAP))
42 
43 #define ECRYPT_MACHINE_SWAP
44 
45 /*
46  * If you want to overwrite the default swap macros, put it here. And so on.
47  */
48 
49 #endif
50 
51 /* ------------------------------------------------------------------------- */
52