From: H. Peter Anvin Date: Mon, 25 Nov 2013 01:14:34 +0000 (-0800) Subject: iflag: Drop the use of double underscores X-Git-Tag: nasm-2.11.05~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b47c77d89adac7abd81f6a99a04d85d853d84d9;p=platform%2Fupstream%2Fnasm.git iflag: Drop the use of double underscores Double underscores are reserved for the implementation, i.e. the C compiler and its libraries. NASM is an application and should not use this namespace. Signed-off-by: H. Peter Anvin --- diff --git a/iflag.h b/iflag.h index f73f99c..0764a05 100644 --- a/iflag.h +++ b/iflag.h @@ -114,13 +114,13 @@ IF_GEN_HELPER(xor, ^) IF_GENBIT(IF_AR3) |\ IF_GENBIT(IF_AR4)) -#define __itemp_smask(idx) (insns_flags[(idx)].field[0] & IF_SMASK) -#define __itemp_armask(idx) (insns_flags[(idx)].field[0] & IF_ARMASK) -#define __itemp_arg(idx) ((__itemp_armask(idx) >> IF_AR0) - 1) +#define _itemp_smask(idx) (insns_flags[(idx)].field[0] & IF_SMASK) +#define _itemp_armask(idx) (insns_flags[(idx)].field[0] & IF_ARMASK) +#define _itemp_arg(idx) ((_itemp_armask(idx) >> IF_AR0) - 1) -#define itemp_smask(itemp) __itemp_smask((itemp)->iflag_idx) -#define itemp_arg(itemp) __itemp_arg((itemp)->iflag_idx) -#define itemp_armask(itemp) __itemp_armask((itemp)->iflag_idx) +#define itemp_smask(itemp) _itemp_smask((itemp)->iflag_idx) +#define itemp_arg(itemp) _itemp_arg((itemp)->iflag_idx) +#define itemp_armask(itemp) _itemp_armask((itemp)->iflag_idx) static inline int iflag_cmp_cpu_level(const iflag_t *a, const iflag_t *b) { @@ -141,7 +141,7 @@ static inline int iflag_cmp_cpu_level(const iflag_t *a, const iflag_t *b) return 0; } -static inline iflag_t __iflag_pfmask(const iflag_t *a) +static inline iflag_t _iflag_pfmask(const iflag_t *a) { iflag_t r = (iflag_t) { .field[1] = a->field[1], @@ -156,6 +156,6 @@ static inline iflag_t __iflag_pfmask(const iflag_t *a) return r; } -#define iflag_pfmask(itemp) __iflag_pfmask(&insns_flags[(itemp)->iflag_idx]) +#define iflag_pfmask(itemp) _iflag_pfmask(&insns_flags[(itemp)->iflag_idx]) -#endif /* NASM_IFLAG_H__ */ +#endif /* NASM_IFLAG_H */