1234567891011121314151617 |
- $OpenBSD: patch-rtengine_sleef_c,v 1.3 2017/05/22 05:25:03 kirby Exp $
- Unbreak build on 32-bit archs.
- Index: rtengine/sleef.c
- --- rtengine/sleef.c.orig
- +++ rtengine/sleef.c
- @@ -801,7 +801,7 @@ __inline double xsqrt(double d) { // max error : 0.5 u
- }
-
- // http://en.wikipedia.org/wiki/Fast_inverse_square_root
- - double x = longBitsToDouble(0x5fe6ec85e7de30da - (doubleToRawLongBits(d + 1e-320) >> 1));
- + double x = longBitsToDouble(0x5fe6ec85e7de30daULL - (doubleToRawLongBits(d + 1e-320) >> 1));
-
- x = x * (1.5 - 0.5 * d * x * x);
- x = x * (1.5 - 0.5 * d * x * x);
|