Skip to content

Commit

Permalink
compilation fix for gcc and clang
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravenwater committed Aug 7, 2024
1 parent e665ae6 commit 856501a
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions static/dd/math/hypot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,6 @@
#include <universal/number/dd/dd.hpp>
#include <universal/verification/test_suite.hpp>

// generate specific test case
template<typename Ty>
void GenerateTestCase(Ty fa) {
unsigned precision = 25;
unsigned width = 30;
Ty fref;
sw::universal::dd a, ref, v;
a = fa;
fref = std::hypot(fa);
ref = fref;
v = sw::universal::hypot(a);
auto oldPrec = std::cout.precision();
std::cout << std::setprecision(precision);
std::cout << " -> hypot(" << fa << ") = " << std::setw(width) << fref << std::endl;
std::cout << " -> hypot( " << a << ") = " << v << '\n' << to_binary(v) << '\n';
std::cout << to_binary(ref) << "\n -> reference\n";
std::cout << (ref == v ? "PASS" : "FAIL") << std::endl << std::endl;
std::cout << std::setprecision(oldPrec);
}

// Regression testing guards: typically set by the cmake configuration, but MANUAL_TESTING is an override
#define MANUAL_TESTING 1
// REGRESSION_LEVEL_OVERRIDE is set by the cmake file to drive a specific regression intensity
Expand Down

0 comments on commit 856501a

Please sign in to comment.