1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-03 12:00:59 +00:00

undef align for ed25519-donna

This commit is contained in:
Pavol Rusnak 2016-04-29 17:50:20 +02:00
parent 406022acb4
commit b8ec5567ba
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -13,6 +13,7 @@
#define inline __forceinline #define inline __forceinline
#define DONNA_INLINE __forceinline #define DONNA_INLINE __forceinline
#define DONNA_NOINLINE __declspec(noinline) #define DONNA_NOINLINE __declspec(noinline)
#undef ALIGN
#define ALIGN(x) __declspec(align(x)) #define ALIGN(x) __declspec(align(x))
#define ROTL32(a,b) _rotl(a,b) #define ROTL32(a,b) _rotl(a,b)
#define ROTR32(a,b) _rotr(a,b) #define ROTR32(a,b) _rotr(a,b)
@ -20,6 +21,7 @@
#include <sys/param.h> #include <sys/param.h>
#define DONNA_INLINE inline __attribute__((always_inline)) #define DONNA_INLINE inline __attribute__((always_inline))
#define DONNA_NOINLINE __attribute__((noinline)) #define DONNA_NOINLINE __attribute__((noinline))
#undef ALIGN
#define ALIGN(x) __attribute__((aligned(x))) #define ALIGN(x) __attribute__((aligned(x)))
#define ROTL32(a,b) (((a) << (b)) | ((a) >> (32 - b))) #define ROTL32(a,b) (((a) << (b)) | ((a) >> (32 - b)))
#define ROTR32(a,b) (((a) >> (b)) | ((a) << (32 - b))) #define ROTR32(a,b) (((a) >> (b)) | ((a) << (32 - b)))