aboutsummaryrefslogtreecommitdiff
path: root/include/opcode/nds32.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/opcode/nds32.h')
-rw-r--r--include/opcode/nds32.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/opcode/nds32.h b/include/opcode/nds32.h
index 95e5f8c..5803834 100644
--- a/include/opcode/nds32.h
+++ b/include/opcode/nds32.h
@@ -50,8 +50,8 @@ static const int nds32_r54map[] ATTRIBUTE_UNUSED =
-1, -1, -1, -1, -1, -1, -1, -1
};
-#define __BIT(n) (1 << (n))
-#define __MASK(n) (__BIT (n) - 1)
+#define N32_BIT(n) (1 << (n))
+#define __MASK(n) (N32_BIT (n) - 1)
#define __MF(v, off, bs) (((v) & __MASK (bs)) << (off))
#define __GF(v, off, bs) (((v) >> off) & __MASK (bs))
#define __SEXT(v, bs) ((((v) & ((1 << (bs)) - 1)) ^ (1 << ((bs) - 1))) - (1 << ((bs) - 1)))