From 3a0b23e473ff27db9fa708b85f3fcf9938986cfa Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Mon, 28 Sep 2020 22:30:36 +0000 Subject: Fix compilation of pset1frombits calls on iOS. --- Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h') diff --git a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h index a0bfada93..dcb21a543 100644 --- a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +++ b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h @@ -34,7 +34,7 @@ pfrexp_double(const Packet& a, Packet& exponent) { typedef typename unpacket_traits::integer_packet PacketI; const Packet cst_1022d = pset1(1022.0); const Packet cst_half = pset1(0.5); - const Packet cst_inv_mant_mask = pset1frombits(~0x7ff0000000000000u); + const Packet cst_inv_mant_mask = pset1frombits(static_cast(~0x7ff0000000000000ull)); exponent = psub(pcast(plogical_shift_right<52>(preinterpret(a))), cst_1022d); return por(pand(a, cst_inv_mant_mask), cst_half); } @@ -172,9 +172,9 @@ Packet plog_double(const Packet _x) const Packet cst_1 = pset1(1.0); const Packet cst_half = pset1(0.5); // The smallest non denormalized float number. - const Packet cst_min_norm_pos = pset1frombits( 0x0010000000000000u); - const Packet cst_minus_inf = pset1frombits( 0xfff0000000000000u); - const Packet cst_pos_inf = pset1frombits( 0x7ff0000000000000u); + const Packet cst_min_norm_pos = pset1frombits( static_cast(0x0010000000000000ull)); + const Packet cst_minus_inf = pset1frombits( static_cast(0xfff0000000000000ull)); + const Packet cst_pos_inf = pset1frombits( static_cast(0x7ff0000000000000ull)); // Polynomial Coefficients for log(1+x) = x - x**2/2 + x**3 P(x)/Q(x) // 1/sqrt(2) <= x < sqrt(2) -- cgit v1.2.3