sqrt_arm64.s 339 B

12345678910111213
  1. //go:build !tinygo && !noasm
  2. // Copyright 2015 The Go Authors. All rights reserved.
  3. // Use of this source code is governed by a BSD-style
  4. // license that can be found in the LICENSE file.
  5. #include "textflag.h"
  6. // func archSqrt(x float32) float32
  7. TEXT ·archSqrt(SB),NOSPLIT,$0
  8. FMOVS x+0(FP), F0
  9. FSQRTS F0, F0
  10. FMOVS F0, ret+8(FP)
  11. RET