X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=opcodes%2Fnds32-asm.h;h=f5352e7e688590aa2a38dc1ef7be1107274821a7;hb=4ec521f238627f7682306d699c8826390a2cc9e7;hp=f273f2f258ecb8864ff3b379cf01844c85b65d76;hpb=6f2750feaf2827ef8a1a0a5b2f90c1e9a6cabbd1;p=binutils-gdb.git diff --git a/opcodes/nds32-asm.h b/opcodes/nds32-asm.h index f273f2f258e..f5352e7e688 100644 --- a/opcodes/nds32-asm.h +++ b/opcodes/nds32-asm.h @@ -1,5 +1,5 @@ /* NDS32-specific support for 32-bit ELF. - Copyright (C) 2012-2016 Free Software Foundation, Inc. + Copyright (C) 2012-2017 Free Software Foundation, Inc. Contributed by Andes Technology Corporation. This file is part of BFD, the Binary File Descriptor library. @@ -23,6 +23,10 @@ #ifndef NDS32_ASM_H #define NDS32_ASM_H +#ifdef __cplusplus +extern "C" { +#endif + /* Constant values for assembler. */ enum { @@ -275,7 +279,7 @@ extern void nds32_asm_init (nds32_asm_desc_t *, int); #define ALU2(sub) (OP6 (ALU2) | N32_ALU2_ ## sub) #define MISC(sub) (OP6 (MISC) | N32_MISC_ ## sub) #define MEM(sub) (OP6 (MEM) | N32_MEM_ ## sub) -#define FPU_RA_IMMBI(sub) (OP6 (sub) | __BIT (12)) +#define FPU_RA_IMMBI(sub) (OP6 (sub) | N32_BIT (12)) #define FS1(sub) (OP6 (COP) | N32_FPU_FS1 | (N32_FPU_FS1_ ## sub << 6)) #define FS1_F2OP(sub) (OP6 (COP) | N32_FPU_FS1 | (N32_FPU_FS1_F2OP << 6) \ | (N32_FPU_FS1_F2OP_ ## sub << 10)) @@ -294,4 +298,8 @@ extern void nds32_asm_init (nds32_asm_desc_t *, int); #define FPU_MEMBI(sub) (OP6 (COP) | N32_FPU_ ## sub | 0x1 << 7) #define AUDIO(sub) (OP6 (AEXT) | (N32_AEXT_ ## sub << 20)) +#ifdef __cplusplus +} +#endif + #endif