diff options
author | Kuan-Lin Chen <kuanlinchentw@gmail.com> | 2017-09-11 13:46:27 +0800 |
---|---|---|
committer | Kuan-Lin Chen <kuanlinchentw@gmail.com> | 2017-09-11 13:46:27 +0800 |
commit | 4ec521f238627f7682306d699c8826390a2cc9e7 (patch) | |
tree | 588cf236fbd0cc862c7d91e856bec4e19c136c8e /include | |
parent | 555cb1688148f41582b1e7e9af57e2fc3fbf21bf (diff) | |
download | gdb-4ec521f238627f7682306d699c8826390a2cc9e7.zip gdb-4ec521f238627f7682306d699c8826390a2cc9e7.tar.gz gdb-4ec521f238627f7682306d699c8826390a2cc9e7.tar.bz2 |
nds32: Rename __BIT() to N32_BIT().
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/opcode/nds32.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 2845f85..3b6cea9 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 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))) |