Skip to content

Commit 087476c

Browse files
committed
fixup! [libc][math][c23] Add f16subf C23 math function
Replace ^ on bools with !=.
1 parent be0a962 commit 087476c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/FPUtil/generic/add_sub.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ add_or_sub(InType x, InType y) {
4545
InFPBits x_bits(x);
4646
InFPBits y_bits(y);
4747

48-
bool is_effectively_add = (x_bits.sign() == y_bits.sign()) ^ IsSub;
48+
bool is_effectively_add = (x_bits.sign() == y_bits.sign()) != IsSub;
4949

5050
if (LIBC_UNLIKELY(x_bits.is_inf_or_nan() || y_bits.is_inf_or_nan() ||
5151
x_bits.is_zero() || y_bits.is_zero())) {

0 commit comments

Comments
 (0)