Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit e272698

Browse files
committed
Remove duplicate check in equal
1 parent 6ef8fa7 commit e272698

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/libm-test/tests/system_libm.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,7 @@ macro_rules! impl_eq_f {
186186
// one is inf but the other is not
187187
return false;
188188
}
189-
if x.is_infinite() != y.is_infinite() {
190-
// one is inf but the other is not
191-
return false;
192-
}
189+
193190
let xi: $i_ty = unsafe { core::intrinsics::transmute(x) };
194191
let yi: $i_ty = unsafe { core::intrinsics::transmute(y) };
195192
if (xi < 0) != (yi < 0) {

0 commit comments

Comments
 (0)