Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix typo nand #617

Merged
merged 1 commit into from
Oct 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ result_t validateSingleFloatPair(float a, float b)
const uint32_t *ua = (const uint32_t *) &a;
const uint32_t *ub = (const uint32_t *) &b;
// We do an integer (binary) compare rather than a
// floating point compare to take nands and infinities
// floating point compare to take NaNs and infinities
// into account as well.
return (*ua) == (*ub) ? TEST_SUCCESS : TEST_FAIL;
}
Expand All @@ -284,7 +284,7 @@ result_t validateSingleDoublePair(double a, double b)
const uint64_t *ua = (const uint64_t *) &a;
const uint64_t *ub = (const uint64_t *) &b;
// We do an integer (binary) compare rather than a
// floating point compare to take nands and infinities
// floating point compare to take NaNs and infinities
// into account as well.

if (std::isnan(a) && std::isnan(b)) {
Expand Down
Loading