summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKuan-Lin Chen <kuanlinchentw@gmail.com>2017-09-11 13:46:27 +0800
committerKuan-Lin Chen <kuanlinchentw@gmail.com>2017-09-11 13:46:27 +0800
commit4ec521f238627f7682306d699c8826390a2cc9e7 (patch)
tree588cf236fbd0cc862c7d91e856bec4e19c136c8e /include
parent555cb1688148f41582b1e7e9af57e2fc3fbf21bf (diff)
downloadbinutils-gdb-4ec521f238627f7682306d699c8826390a2cc9e7.tar.gz
nds32: Rename __BIT() to N32_BIT().
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/opcode/nds32.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 2845f8574cf..3b6cea96649 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2017-09-06 Kamil Rytarowski <n54@gmx.com>
+
+ * opcode/nds32.h: Rename __BIT() to N32_BIT().
+
2017-09-05 Alexander Fedotov <alexander.fedotov@nxp.com>
Edmar Wienskoski <edmar.wienskoski@nxp.com
diff --git a/include/opcode/nds32.h b/include/opcode/nds32.h
index 95e5f8ce3cd..5803834f880 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)))