stress-ng: bump to version 0.12.10
Patch `010-soft-float.patch` can be dropped. It was upstreamed via https://github.com/ColinIanKing/stress-ng/pull/126 Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
parent
02bc1fc929
commit
6f48074e79
2 changed files with 2 additions and 72 deletions
|
@ -6,12 +6,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=stress-ng
|
PKG_NAME:=stress-ng
|
||||||
PKG_VERSION:=0.12.07
|
PKG_VERSION:=0.12.10
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=https://kernel.ubuntu.com/~cking/tarballs/stress-ng
|
PKG_SOURCE_URL:=https://kernel.ubuntu.com/~cking/tarballs/stress-ng
|
||||||
PKG_HASH:=cf73e3a4c7d95afa46aa27fb9283a8a988f3971de4ce6ffe9f651ca341731ead
|
PKG_HASH:=bd167b6559fa8a28680371b1defd3ffe2344eb550129d58dd7d5e2d568f2786e
|
||||||
|
|
||||||
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
|
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
|
||||||
PKG_LICENSE:=GPL-2.0-only
|
PKG_LICENSE:=GPL-2.0-only
|
||||||
|
|
|
@ -1,70 +0,0 @@
|
||||||
--- a/stress-fp-error.c
|
|
||||||
+++ b/stress-fp-error.c
|
|
||||||
@@ -119,42 +119,43 @@ static int stress_fp_error(const stress_
|
|
||||||
do {
|
|
||||||
volatile double d1, d2;
|
|
||||||
|
|
||||||
-#if defined(EDOM)
|
|
||||||
+#if defined(EDOM) && defined(FE_INVALID)
|
|
||||||
stress_fp_clear_error();
|
|
||||||
stress_fp_check(args, "log(-1.0)", log(-1.0), NAN,
|
|
||||||
true, false, EDOM, FE_INVALID);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#if defined(ERANGE)
|
|
||||||
+#if defined(ERANGE) && defined(FE_DIVBYZERO)
|
|
||||||
stress_fp_clear_error();
|
|
||||||
stress_fp_check(args, "log(0.0)", log(0.0), -HUGE_VAL,
|
|
||||||
false, false, ERANGE, FE_DIVBYZERO);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#if defined(EDOM)
|
|
||||||
+#if defined(EDOM) && defined(FE_INVALID)
|
|
||||||
stress_fp_clear_error();
|
|
||||||
stress_fp_check(args, "log2(-1.0)", log2(-1.0), NAN,
|
|
||||||
true, false, EDOM, FE_INVALID);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#if defined(ERANGE)
|
|
||||||
+#if defined(ERANGE) && defined(FE_DIVBYZERO)
|
|
||||||
stress_fp_clear_error();
|
|
||||||
stress_fp_check(args, "log2(0.0)", log2(0.0), -HUGE_VAL,
|
|
||||||
false, false, ERANGE, FE_DIVBYZERO);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#if defined(EDOM)
|
|
||||||
+#if defined(EDOM) && defined(FE_INVALID)
|
|
||||||
stress_fp_clear_error();
|
|
||||||
stress_fp_check(args, "sqrt(-1.0)", sqrt(-1.0), NAN,
|
|
||||||
true, false, EDOM, FE_INVALID);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#if defined(EDOM)
|
|
||||||
+#if defined(EDOM) && defined(FE_INVALID)
|
|
||||||
stress_fp_clear_error();
|
|
||||||
stress_fp_check(args, "sqrt(-1.0)", sqrt(-1.0), NAN,
|
|
||||||
true, false, EDOM, FE_INVALID);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#if defined(FE_INEXACT)
|
|
||||||
/*
|
|
||||||
* Use volatiles to force compiler to generate code
|
|
||||||
* to perform run time computation of 1.0 / M_PI
|
|
||||||
@@ -175,14 +176,15 @@ static int stress_fp_error(const stress_
|
|
||||||
stress_fp_check(args, "DBL_MAX + DBL_MAX / 2.0",
|
|
||||||
DBL_MAX + DBL_MAX / 2.0, INFINITY,
|
|
||||||
false, true, 0, FE_OVERFLOW | FE_INEXACT);
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
-#if defined(ERANGE)
|
|
||||||
+#if defined(ERANGE) && defined(FE_UNDERFLOW)
|
|
||||||
stress_fp_clear_error();
|
|
||||||
stress_fp_check(args, "exp(-1000000.0)", exp(-1000000.0), 0.0,
|
|
||||||
false, false, ERANGE, FE_UNDERFLOW);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#if defined(ERANGE)
|
|
||||||
+#if defined(ERANGE) && defined(FE_OVERFLOW)
|
|
||||||
stress_fp_clear_error();
|
|
||||||
stress_fp_check(args, "exp(DBL_MAX)", exp(DBL_MAX), HUGE_VAL,
|
|
||||||
false, false, ERANGE, FE_OVERFLOW);
|
|
Loading…
Reference in a new issue