From: Mark Wooding Date: Thu, 29 Dec 2016 14:15:40 +0000 (+0000) Subject: base/asm-common.h: Define `WORDSZ' appropriately for x86ish platforms. X-Git-Tag: 2.3.0~19 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/2cb17e021884f46af033c31a4deb5f60714c3997 base/asm-common.h: Define `WORDSZ' appropriately for x86ish platforms. Four for 32-bit, eight for 64-bit, obviously. --- 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