chiark
/
gitweb
/
~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
base/asm-common.h: Define `WORDSZ' appropriately for x86ish platforms.
[catacomb]
/
base
/
asm-common.h
diff --git
a/base/asm-common.h
b/base/asm-common.h
index 6cd47f7a9f6acd5216ec3af493fe960d90532a17..083643e7cef21fa291c897aa11c68da038b54929 100644
(file)
--- 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