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