fix NaN comparing equal to itself
This was broken both in comptime code and in runtime code. closes #1174
This commit is contained in:
@@ -190,3 +190,7 @@ bool bigfloat_has_fraction(const BigFloat *bigfloat) {
|
||||
void bigfloat_sqrt(BigFloat *dest, const BigFloat *op) {
|
||||
f128M_sqrt(&op->value, &dest->value);
|
||||
}
|
||||
|
||||
bool bigfloat_is_nan(const BigFloat *op) {
|
||||
return f128M_isSignalingNaN(&op->value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user