X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=keccak%2Frotate64.h;fp=keccak%2Frotate64.h;h=f1bdbbad964ac9140a8501da761a4154956f7bdf;hp=a80d2b5e39025afa7f1f85fa9593a7cf1a5692ab;hb=b14938245d00969fde184d6c8490ff0d1a7ab7e1;hpb=7c993b1b86afa12a6e3d27c934e6edfb9cd69485 diff --git a/keccak/rotate64.h b/keccak/rotate64.h index a80d2b5..f1bdbba 100644 --- a/keccak/rotate64.h +++ b/keccak/rotate64.h @@ -33,13 +33,6 @@ #define ROTR_3 (8+3) -#define ROT_BIT(a) (((a) <= 4) ? ((a) << 1) : (0x01 | ((8 - (a)) << 1))) - -//#define ROT_CODE(a,b) (((a)<<4) | ((b)&0x0f)) - -#define ROT_CODE(a) ((((a) / 8 + ((((a) % 8) > 4) ? 1 : 0)) << 4) | ROT_BIT(((a) % 8))) -//#define ROT_CODE(a) ((((a)/8)<<4) | ((a)%8)) /* rotations only to the left */ - uint64_t rotate64_1bit_left(uint64_t a); uint64_t rotate64_1bit_right(uint64_t a); uint64_t rotate64_nbit_autodir(uint64_t a, int8_t n);