From 2cb17e021884f46af033c31a4deb5f60714c3997 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Thu, 29 Dec 2016 14:15:40 +0000 Subject: [PATCH] base/asm-common.h: Define `WORDSZ' appropriately for x86ish platforms. Four for 32-bit, eight for 64-bit, obviously. --- base/asm-common.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/base/asm-common.h b/base/asm-common.h index 6cd47f7a..083643e7 100644 --- a/base/asm-common.h +++ b/base/asm-common.h @@ -124,6 +124,14 @@ name: #if CPUFAM_X86 || CPUFAM_AMD64 +// Word size. +#if CPUFAM_X86 +# define WORDSZ 4 +#endif +#if CPUFAM_AMD64 +# define WORDSZ 8 +#endif + // Set the function hooks. #define FUNC_PREHOOK(_) .balign 16 -- 2.11.0