summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/fuzzylite-soften-float-equality.patch
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2025-07-24 20:52:40 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2025-07-26 11:54:44 +0900
commitc8ff4e93fcb157434b5ad5cd4d8895da6f7e96a6 (patch)
tree94e44cb6cf9d0427aacac8f932a79c4bf57a602a /gnu/packages/patches/fuzzylite-soften-float-equality.patch
parent495a8de637079adde42fd844fe45f339af6a86b5 (diff)
gnu: fuzzylite: Update to 6.0-0.13b3122.
* gnu/packages/games.scm (fuzzylite): Update to 6.0-0.13b3122. [source]: Delete patches. [native-inputs]: Replace catch2 with catch2-3. [license]: Correct to gpl3+. * gnu/packages/patches/fuzzylite-relative-path-in-tests.patch * gnu/packages/patches/fuzzylite-soften-float-equality.patch * gnu/packages/patches/fuzzylite-use-catch2.patch: Delete patches. * gnu/local.mk (dist_patch_DATA): De-register them. Change-Id: Ibe4ebf94b1b9011fbbd161cdfac3786bd6eb184d
Diffstat (limited to 'gnu/packages/patches/fuzzylite-soften-float-equality.patch')
-rw-r--r--gnu/packages/patches/fuzzylite-soften-float-equality.patch30
1 files changed, 0 insertions, 30 deletions
diff --git a/gnu/packages/patches/fuzzylite-soften-float-equality.patch b/gnu/packages/patches/fuzzylite-soften-float-equality.patch
deleted file mode 100644
index 47403605dd..0000000000
--- a/gnu/packages/patches/fuzzylite-soften-float-equality.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-Origin: https://salsa.debian.org/debian/fuzzylite/-/blob/debian/6.0+dfsg-6/debian/patches/when-testing-large-float-numbers-for-equ.patch
-From: Johannes 'josch' Schauer <josch@debian.org>
-Date: Sun, 3 Feb 2019 10:33:22 +0100
-X-Dgit-Generated: 6.0+dfsg-2 80960ae38da9db032dfbfec6405398653e8205ff
-Subject: when testing large float numbers for equality, use a larger epsilon
-
-
----
-
---- fuzzylite-6.0+dfsg.orig/fuzzylite/test/BenchmarkTest.cpp
-+++ fuzzylite-6.0+dfsg/fuzzylite/test/BenchmarkTest.cpp
-@@ -96,7 +96,17 @@ namespace fl {
- CHECK(Op::isEq(1.0, Benchmark::convert(1000.0, Benchmark::MilliSeconds, Benchmark::Seconds)));
- FL_LOG(Benchmark::convert(1000.0, Benchmark::MilliSeconds, Benchmark::Seconds));
-
-- CHECK(Op::isEq(35e9, Benchmark::convert(35, Benchmark::Seconds, Benchmark::NanoSeconds)));
-+ scalar eps =
-+#ifndef __i386__
-+ fuzzylite::macheps();
-+#else
-+ // on i386, due to the 80bit x87 register, double floating point
-+ // numbers are handled differently and thus the difference between
-+ // 35e9 and the result of Benchmark::convert() will be 2.179e-6,
-+ // which is greater than the default epsilon of 1e-6.
-+ 1e-5;
-+#endif
-+ CHECK(Op::isEq(35e9, Benchmark::convert(35, Benchmark::Seconds, Benchmark::NanoSeconds), eps));
- CHECK(Op::isEq(35, Benchmark::convert(35e9, Benchmark::NanoSeconds, Benchmark::Seconds)));
- }
-