base/asm-common.h: Define `WORDSZ' appropriately for x86ish platforms.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 29 Dec 2016 14:15:40 +0000 (14:15 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 3 Apr 2017 09:00:08 +0000 (10:00 +0100)
Four for 32-bit, eight for 64-bit, obviously.

base/asm-common.h

index 6cd47f7..083643e 100644 (file)
@@ -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