Use __builtin_sqrt instead of using std library functions

__builtin_sqrt is already used in a few other places in the semantics.
This commit just makes this consistent for all sqrt computations.
This commit is contained in:
momo5502
2026-01-04 12:02:27 +01:00
committed by Kyle Elliott
parent 3aae67d6a0
commit df4d60e779
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ DEF_HELPER(SquareRoot32, float32_t src_float)->float32_t {
uint32_t indef_qnan = 0xFFC00000U;
square_root = reinterpret_cast<float32_t &>(indef_qnan);
} else {
square_root = std::sqrt(src_float);
square_root = __builtin_sqrtf(src_float);
}
}
+1 -1
View File
@@ -1794,7 +1794,7 @@ DEF_HELPER(SquareRoot64, float64_t src_float)->float64_t {
uint64_t indef_qnan = 0xFFF8000000000000ULL;
square_root = reinterpret_cast<float64_t &>(indef_qnan);
} else {
square_root = std::sqrt(src_float);
square_root = __builtin_sqrt(src_float);
}
}