struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / cpp / gcc / insn-modes-inline.h
blobc62be06372f9363c39cad53756796d211a53b65b
1 #ifndef GCC_INSN_MODES_INLINE_H
2 #define GCC_INSN_MODES_INLINE_H
3 #ifdef __cplusplus
4 inline __attribute__((__always_inline__))
5 #else
6 extern __inline__ __attribute__((__always_inline__, __gnu_inline__))
7 #endif
8 unsigned char
9 mode_inner_inline (machine_mode mode)
11 extern const unsigned char mode_inner[NUM_MACHINE_MODES];
12 gcc_assert (mode >= 0 && mode < NUM_MACHINE_MODES);
13 switch (mode)
15 case E_VOIDmode: return E_VOIDmode;
16 case E_BLKmode: return E_BLKmode;
17 case E_HFmode: return E_HFmode;
18 case E_TFmode: return E_TFmode;
19 case E_SDmode: return E_SDmode;
20 case E_TDmode: return E_TDmode;
21 default: return mode_inner[mode];
24 #endif