diff options
Diffstat (limited to 'llgo/third_party/gofrontend/libgo/go/math/sqrt.go')
| -rw-r--r-- | llgo/third_party/gofrontend/libgo/go/math/sqrt.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llgo/third_party/gofrontend/libgo/go/math/sqrt.go b/llgo/third_party/gofrontend/libgo/go/math/sqrt.go index 56122b59814..215d6485442 100644 --- a/llgo/third_party/gofrontend/libgo/go/math/sqrt.go +++ b/llgo/third_party/gofrontend/libgo/go/math/sqrt.go @@ -96,6 +96,12 @@ func Sqrt(x float64) float64 { // Sqrt(±0) = ±0 // Sqrt(x < 0) = NaN // Sqrt(NaN) = NaN + +// Note: Sqrt is implemented in assembly on some systems. +// Others have assembly stubs that jump to func sqrt below. +// On systems where Sqrt is a single instruction, the compiler +// may turn a direct call into a direct use of that instruction instead. + func sqrt(x float64) float64 { // special cases switch { |

