arm: fix an warning reported by GCC
This commit is contained in:
parent
7f1d7094e6
commit
513075e061
@ -2691,8 +2691,10 @@ static int disas_dsp_insn(DisasContext *s, uint32_t insn)
|
||||
// this causes "warning C4293: shift count negative or too big, undefined behavior"
|
||||
// on msvc, so is replaced with separate versions for the shift to perform.
|
||||
//#define VFP_REG_SHR(x, n) (((n) > 0) ? (x) >> (n) : (x) << -(n))
|
||||
#if 0
|
||||
//#define VFP_SREG(insn, bigbit, smallbit) \
|
||||
// ((VFP_REG_SHR(insn, bigbit - 1) & 0x1e) | (((insn) >> (smallbit)) & 1))
|
||||
#endif
|
||||
|
||||
#define VFP_REG_SHR_NEG(insn, n) ((insn) << -(n))
|
||||
#define VFP_SREG_NEG(insn, bigbit, smallbit) \
|
||||
|
Loading…
Reference in New Issue
Block a user