patch-rtengine_sleef_c 580 B

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