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 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))); } ethod='get' action='/guix/log/AUTHORS'>
path: root/AUTHORS
AgeCommit message (Expand)Author
2015-07-19AUTHORS: Remove the hand-made list of people....* AUTHORS: Remove the list of people, and add a note saying that this file is meant to be generated. Ludovic Courtès
2015-07-04Clean up 'THANKS' and 'AUTHORS'....* THANKS: Add Konrad Hinsen, Cyprien Nicolas, Yakkala Yagnesh Raghava and Alexander Shendi. Remove Federico Beffa, Marek Benc, John Darrington, rekado, Cyrill Schenkel and Andy Wingo because they are placed in AUTHORS. Move Amirouche Boubekki and Alex Kost to ... * AUTHORS: ... here. Add Arne Babenhauserheide, Ian Denhardt, Kevin Lemonnier, Mathieu Lirzin, Pierre-Antoine Rault and Ben Woodcroft. Fix some names and emails. Alex Kost
2015-06-27Add Claes Wallin to 'AUTHORS'.Alex Kost
2015-04-26gnu: Add guile-minikanren....* gnu/packages/guile.scm (guile-minikanren): New variable. Christopher Allan Webber
2015-04-05Add Andy to 'AUTHORS'.Ludovic Courtès
2015-03-09Add Paul to 'AUTHORS'.Mark H Weaver
2015-03-09Add Alexander to 'AUTHORS'.Ludovic Courtès
2015-02-20Add David Hashe to 'AUTHORS'.Andreas Enge
2015-02-02Add Deck to 'AUTHORS'.Ludovic Courtès
2015-01-24Add Ricardo to 'AUTHORS'.Ludovic Courtès
2014-12-09Add Tomáš to 'AUTHORS'.Ludovic Courtès
2014-11-18Add Julien to 'AUTHORS'.Ludovic Courtès
2014-11-14Add the name of Sou Bunnbu in its original script to 'AUTHORS'.Ludovic Courtès
2014-11-12Add Sun Bunnbu to 'AUTHORS'.Ludovic Courtès
2014-10-26Update name and email address for Joshua Grant.Joshua Grant
2014-10-08Add Federico to 'AUTHORS'.Ludovic Courtès
2014-09-10Add Marek to 'AUTHORS'.Ludovic Courtès
2014-08-15Update AUTHORS and THANKS.Ludovic Courtès