ports/graphics/xfractint/files/patch-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

22 lines
569 B
C

--- unix/fpu087.c.orig 2012-03-10 17:28:49.000000000 -0500
+++ unix/fpu087.c 2012-03-10 17:36:40.000000000 -0500
@@ -86,8 +86,8 @@
*Sinh = 1.0;
*Cosh = 1.0;
} else {
- *Sinh = (double)sinhl(*Angle);
- *Cosh = (double)coshl(*Angle);
+ *Sinh = (double)sinh(*Angle);
+ *Cosh = (double)cosh(*Angle);
}
if (isnan(*Sinh) || isinf(*Sinh))
*Sinh = 1.0;
@@ -119,7 +119,7 @@
{
LDBL pwr,y;
y = x->y;
- pwr = expl(x->x);
+ pwr = exp(x->x);
if (isnan(pwr) || isinf(pwr))
pwr = 1.0;
z->x = (double)(pwr*cosl(y));