mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
math/sleef: add ARMv7 patch files
PR: 259922
This commit is contained in:
parent
4841c87f96
commit
d5babb3b84
@ -2,7 +2,7 @@
|
||||
|
||||
PORTNAME= sleef
|
||||
DISTVERSION= 3.5.0
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= math
|
||||
|
||||
MAINTAINER= jmd@FreeBSD.org
|
||||
|
21
math/sleef/files/patch-src_libm-tester_iutsimdmain.c
Normal file
21
math/sleef/files/patch-src_libm-tester_iutsimdmain.c
Normal file
@ -0,0 +1,21 @@
|
||||
--- src/libm-tester/iutsimdmain.c.orig 2021-11-18 16:48:35 UTC
|
||||
+++ src/libm-tester/iutsimdmain.c
|
||||
@@ -9,16 +9,16 @@
|
||||
#include <signal.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
-static jmp_buf sigjmp;
|
||||
-
|
||||
int do_test(int argc, char **argv);
|
||||
int check_featureDP(double d);
|
||||
int check_featureSP(float d);
|
||||
|
||||
#if defined(_MSC_VER) || defined(__MINGW32__) || defined(__MINGW64__)
|
||||
+static jmp_buf sigjmp;
|
||||
#define SETJMP(x) setjmp(x)
|
||||
#define LONGJMP longjmp
|
||||
#else
|
||||
+static sigjmp_buf sigjmp;
|
||||
#define SETJMP(x) sigsetjmp(x, 1)
|
||||
#define LONGJMP siglongjmp
|
||||
#endif
|
11
math/sleef/files/patch-src_libm-tester_tester2simdsp.c
Normal file
11
math/sleef/files/patch-src_libm-tester_tester2simdsp.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/libm-tester/tester2simdsp.c.orig 2021-11-18 16:25:52 UTC
|
||||
+++ src/libm-tester/tester2simdsp.c
|
||||
@@ -828,7 +828,7 @@ int main(int argc,char **argv)
|
||||
double u0 = countULPsp(t = vget(xacoshf(vd), e), frx);
|
||||
|
||||
if ((fabs(d) < sqrt(FLT_MAX) && u0 > 1.0001) ||
|
||||
- (d >= sqrt(FLT_MAX) && !(u0 <= 1.0001 || (isinff(t) && t > 0))) ||
|
||||
+ (d >= sqrt(FLT_MAX) && !(u0 <= 1.0001 || (isinf(t) && t > 0))) ||
|
||||
(d <= -sqrt(FLT_MAX) && !isnan(t))) {
|
||||
printf(ISANAME " acoshf arg=%.20g ulp=%.20g\n", d, u0);
|
||||
fflush(stdout); ecnt++;
|
11
math/sleef/files/patch-src_libm-tester_testerutil.c
Normal file
11
math/sleef/files/patch-src_libm-tester_testerutil.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/libm-tester/testerutil.c.orig 2021-11-18 16:26:40 UTC
|
||||
+++ src/libm-tester/testerutil.c
|
||||
@@ -45,7 +45,7 @@ int isMinusZero(double x) { return x == 0 && copysign(
|
||||
double sign(double d) { return d < 0 ? -1 : 1; }
|
||||
int xisnan(double x) { return x != x; }
|
||||
|
||||
-int isnumberf(float x) { return !isinff(x) && !isnanf(x); }
|
||||
+int isnumberf(float x) { return !isinf(x) && !isnanf(x); }
|
||||
int isPlusZerof(float x) { return x == 0 && copysignf(1, x) == 1; }
|
||||
int isMinusZerof(float x) { return x == 0 && copysignf(1, x) == -1; }
|
||||
float signf(float d) { return d < 0 ? -1 : 1; }
|
Loading…
Reference in New Issue
Block a user