base/asm-common.h: Define `WORDSZ' appropriately for x86ish platforms.
[catacomb] / 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