From 50b45b0f8ded1d226c4210c94fa8e8303b83fa8a Mon Sep 17 00:00:00 2001 From: leitner Date: Thu, 22 Aug 2013 23:38:08 +0000 Subject: [PATCH] define UNALIGNED_ACCESS_OK on x86 --- byte.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/byte.h b/byte.h index c9cf0c0..0568164 100644 --- a/byte.h +++ b/byte.h @@ -43,6 +43,10 @@ void byte_zero(void* out, size_t len); int byte_equal_notimingattack(const void* a, size_t len,const void* b) __pure__; +#if defined(__i386__) || defined(__x86_64__) +#define UNALIGNED_ACCESS_OK +#endif + #ifdef __cplusplus } #endif