freebsd-ports/graphics/xfractint/files/extra-unix__fpu087.c
Pawel Pekala ca4a6cf153 - Update to version 20.04p12 [1]
- Project has new homepage [1]
- Port needs USE_XORG+=xft to compile now
- Use INSTALL_DATA and COPYTREE_SHARE macros instead of CP
  for proper file permissions
- Add desktop entry file

PR:             ports/165911 [1]
Submitted by:   Pedro Giffuni <giffunip@tutopia.com> [1]
Approved by:    maintainer [1]
Feature safe:	yes
2012-03-24 16:51:18 +00:00

20 lines
608 B
C

--- unix/fpu087.c.orig 2012-03-24 17:16:18.000000000 +0100
+++ unix/fpu087.c 2012-03-24 17:17:15.000000000 +0100
@@ -31,7 +31,7 @@
if (isnan(*x) || isnan(*y) || isinf(*x) || isinf(*y))
*atan = 1.0;
else
- *atan = (double)atan2l(*y,*x);
+ *atan = (double)atan2f((float)*y,(float)*x);
}
void FPUcplxmul(_CMPLX *x, _CMPLX *y, _CMPLX *z)
@@ -112,7 +112,7 @@
if (isnan(xx) || isnan(xy) || isinf(xx) || isinf(xy))
z->y = 1.0;
else
- z->y = (double)atan2l(xy,xx);
+ z->y = (double)atan2f((float)xy,(float)xx);
}
void FPUcplxexp387(_CMPLX *x, _CMPLX *z)