Avoid "left shift count >= width of type" warnings in soft-fp code.
This commit is contained in:
parent
2fe162299f
commit
6f476861be
|
@ -1,3 +1,9 @@
|
||||||
|
2013-11-26 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
|
* soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
|
||||||
|
_FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
|
||||||
|
warning.
|
||||||
|
|
||||||
2013-11-26 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
|
2013-11-26 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
|
* sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
|
||||||
|
|
|
@ -709,7 +709,7 @@
|
||||||
else if (rsize <= 2*_FP_W_TYPE_SIZE) \
|
else if (rsize <= 2*_FP_W_TYPE_SIZE) \
|
||||||
{ \
|
{ \
|
||||||
r = X##_f[1]; \
|
r = X##_f[1]; \
|
||||||
r <<= _FP_W_TYPE_SIZE; \
|
r = (rsize <= _FP_W_TYPE_SIZE ? 0 : r << _FP_W_TYPE_SIZE); \
|
||||||
r += X##_f[0]; \
|
r += X##_f[0]; \
|
||||||
} \
|
} \
|
||||||
else \
|
else \
|
||||||
|
@ -717,11 +717,11 @@
|
||||||
/* I'm feeling lazy so we deal with int == 3words (implausible)*/ \
|
/* I'm feeling lazy so we deal with int == 3words (implausible)*/ \
|
||||||
/* and int == 4words as a single case. */ \
|
/* and int == 4words as a single case. */ \
|
||||||
r = X##_f[3]; \
|
r = X##_f[3]; \
|
||||||
r <<= _FP_W_TYPE_SIZE; \
|
r = (rsize <= _FP_W_TYPE_SIZE ? 0 : r << _FP_W_TYPE_SIZE); \
|
||||||
r += X##_f[2]; \
|
r += X##_f[2]; \
|
||||||
r <<= _FP_W_TYPE_SIZE; \
|
r = (rsize <= _FP_W_TYPE_SIZE ? 0 : r << _FP_W_TYPE_SIZE); \
|
||||||
r += X##_f[1]; \
|
r += X##_f[1]; \
|
||||||
r <<= _FP_W_TYPE_SIZE; \
|
r = (rsize <= _FP_W_TYPE_SIZE ? 0 : r << _FP_W_TYPE_SIZE); \
|
||||||
r += X##_f[0]; \
|
r += X##_f[0]; \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
|
|
Loading…
Reference in New Issue