chiark
/
gitweb
/
~mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1e5664a
)
base/asm-common.h: Define `WORDSZ' appropriately for x86ish platforms.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 29 Dec 2016 14:15:40 +0000
(14:15 +0000)
committer
Mark 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
patch
|
blob
|
blame
|
history
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
#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
// Set the function hooks.
#define FUNC_PREHOOK(_) .balign 16