Skip to content

Commit 6894d5c

Browse files
committed
fixup! [libc][math][c23] Add MPFR exhaustive test for fmodf16
1 parent 9f8eb2f commit 6894d5c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

libc/test/src/math/exhaustive/exhaustive_test.h

+2-4
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ struct LlvmLibcExhaustiveMathTest
116116
using FPBits = typename Checker::FPBits;
117117
using StorageType = typename Checker::StorageType;
118118

119-
static constexpr StorageType INCREMENT = Increment;
120-
121119
void explain_failed_range(std::stringstream &msg, StorageType x_begin,
122120
StorageType x_end) {
123121
#ifdef LIBC_TYPES_HAS_FLOAT16
@@ -165,8 +163,8 @@ struct LlvmLibcExhaustiveMathTest
165163
return;
166164

167165
range_begin = current_value;
168-
if (stop >= INCREMENT && stop - INCREMENT >= current_value) {
169-
range_end = current_value + INCREMENT;
166+
if (stop >= Increment && stop - Increment >= current_value) {
167+
range_end = current_value + Increment;
170168
} else {
171169
range_end = stop;
172170
}

0 commit comments

Comments
 (0)