fix warning

This commit is contained in:
Gael Guennebaud 2019-01-09 15:45:21 +01:00
parent aeec68f77b
commit 3f14e0d19e

View File

@ -332,8 +332,11 @@ Packet psincos_float(const Packet& _x)
// The coefficients are: 0xbfc90f80, 0xb7354480, 0x2e74b9ee // The coefficients are: 0xbfc90f80, 0xb7354480, 0x2e74b9ee
#endif #endif
Packet huge_mask = pcmp_le(pset1<Packet>(huge_th),pabs(_x)); // We use huge_vals as a temporary for abs(_x) to ensure huge_vals
Packet huge_vals; // is fully initialized for the last pselect(). (prevent compiler warning)
Packet huge_vals = pabs(_x);
Packet huge_mask = pcmp_le(pset1<Packet>(huge_th),huge_vals);
if(predux_any(huge_mask)) if(predux_any(huge_mask))
{ {
const int PacketSize = unpacket_traits<Packet>::size; const int PacketSize = unpacket_traits<Packet>::size;