mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
test(libc): name the failing check in the exact math test
This commit is contained in:
1 parent
7054089279
commit
bc46a0ade9
1 file changed
+7
-1
@@ -5,10 +5,16 @@
|
||||
#include <climits>
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <source_location>
|
||||
|
||||
static void Require(bool value) { if (!value) std::abort(); }
|
||||
static void Require(bool value, std::source_location location = std::source_location::current()) {
|
||||
if (value) return;
|
||||
std::fprintf(stderr, "%s:%u: requirement failed\n", location.file_name(), location.line());
|
||||
std::abort();
|
||||
}
|
||||
|
||||
[[gnu::noinline]] static long double Extended(std::uint16_t signExponent, std::uint64_t mantissa) {
|
||||
long double value = 0;
|
||||
|
||||
Reference in new issue
Block a user