mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 14:28:51 +00:00
aesb: avoid stomping on an existing define on NetBSD
This commit is contained in:
parent
5bbbe3902b
commit
a48e49aa36
@ -33,11 +33,11 @@ extern "C"
|
|||||||
#define RC_LENGTH (5 * (AES_BLOCK_SIZE / 4 - 2))
|
#define RC_LENGTH (5 * (AES_BLOCK_SIZE / 4 - 2))
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#define ALIGN __declspec(align(TABLE_ALIGN))
|
#define LOCAL_ALIGN __declspec(align(TABLE_ALIGN))
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
#define ALIGN __attribute__ ((aligned(16)))
|
#define LOCAL_ALIGN __attribute__ ((aligned(16)))
|
||||||
#else
|
#else
|
||||||
#define ALIGN
|
#define LOCAL_ALIGN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define rf1(r,c) (r)
|
#define rf1(r,c) (r)
|
||||||
@ -131,7 +131,7 @@ extern "C"
|
|||||||
#define t_set(m,n) t_##m##n
|
#define t_set(m,n) t_##m##n
|
||||||
#define t_use(m,n) t_##m##n
|
#define t_use(m,n) t_##m##n
|
||||||
|
|
||||||
#define d_4(t,n,b,e,f,g,h) ALIGN const t n[4][256] = { b(e), b(f), b(g), b(h) }
|
#define d_4(t,n,b,e,f,g,h) LOCAL_ALIGN const t n[4][256] = { b(e), b(f), b(g), b(h) }
|
||||||
|
|
||||||
#define four_tables(x,tab,vf,rf,c) \
|
#define four_tables(x,tab,vf,rf,c) \
|
||||||
(tab[0][bval(vf(x,0,c),rf(0,c))] \
|
(tab[0][bval(vf(x,0,c),rf(0,c))] \
|
||||||
|
Loading…
Reference in New Issue
Block a user