Black Lives Matter. Support the Equal Justice Initiative.

Text file src/math/sqrt_mipsx.s

Documentation: math

     1  // Copyright 2016 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build mips || mipsle
     6  // +build mips mipsle
     7  
     8  #include "textflag.h"
     9  
    10  // func archSqrt(x float64) float64
    11  TEXT ·archSqrt(SB),NOSPLIT,$0
    12  #ifdef GOMIPS_softfloat
    13  	JMP ·sqrt(SB)
    14  #else
    15  	MOVD	x+0(FP), F0
    16  	SQRTD	F0, F0
    17  	MOVD	F0, ret+8(FP)
    18  #endif
    19  	RET
    20  

View as plain text