summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2012-12-02 02:47:16 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2012-12-03 01:34:15 +0400
commitea135e8e731253986c3b384699584b96d8c35cc1 (patch)
tree03ff07c79d82530109a424e758d9725620491517
parentf0ee88040fa9363371fa8f32eb0473287884211c (diff)
downloadnasm-ea135e8e731253986c3b384699584b96d8c35cc1.tar.gz
assemble: Add case3 helper
Signed-off-by: cyrill <cyrill@cyrills-MacBook-Pro.local>
-rw-r--r--assemble.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/assemble.c b/assemble.c
index 0561566a..48c82ad9 100644
--- a/assemble.c
+++ b/assemble.c
@@ -833,7 +833,8 @@ static void bad_hle_warn(const insn * ins, uint8_t hleok)
}
/* Common construct */
-#define case4(x) case (x): case (x)+1: case (x)+2: case (x)+3
+#define case3(x) case (x): case (x)+1: case (x)+2
+#define case4(x) case3(x): case (x)+3
static int64_t calcsize(int32_t segment, int64_t offset, int bits,
insn * ins, const struct itemplate *temp)