mirror of
https://github.com/lifting-bits/remill
synced 2026-06-21 13:56:07 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user