base/asm-common.h: Hoist the `_DECOR_mem_...' definitions.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 18 Aug 2019 01:11:55 +0000 (02:11 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 8 Sep 2019 10:37:54 +0000 (11:37 +0100)
In particular, the various `_DECOR_mumble_...' groups go above the
special `..._r' suffix.

base/asm-common.h

index 4fe7243..7d46579 100644 (file)
@@ -279,6 +279,13 @@ name:
 #  define _DECOR_rn_r(reg) reg
 #endif
 
+#define _DECOR_mem_b(addr) byte ptr addr
+#define _DECOR_mem_w(addr) word ptr addr
+#define _DECOR_mem_d(addr) dword ptr addr
+#if CPUFAM_AMD64
+#  define _DECOR_mem_q(addr) qword ptr addr
+#endif
+
 #if CPUFAM_X86
 #  define _DECOR_abcd_r(reg) e##reg##x
 #  define _DECOR_xp_r(reg) e##reg
@@ -290,13 +297,6 @@ name:
 #  define _DECOR_ip_r(reg) r##reg
 #endif
 
-#define _DECOR_mem_b(addr) byte ptr addr
-#define _DECOR_mem_w(addr) word ptr addr
-#define _DECOR_mem_d(addr) dword ptr addr
-#if CPUFAM_AMD64
-#  define _DECOR_mem_q(addr) qword ptr addr
-#endif
-
 // R_r(decor) applies decoration decor to register r, which is an internal
 // register name.  The internal register names are: `ip', `a', `b', `c', `d',
 // `si', `di', `bp', `sp', `r8'--`r15'.