...

Text file src/pkg/math/sqrt_mipsx.s

     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	// +build mips mipsle
     6	
     7	#include "textflag.h"
     8	
     9	// func Sqrt(x float64) float64
    10	TEXT ·Sqrt(SB),NOSPLIT,$0
    11	#ifdef GOMIPS_softfloat
    12		JMP ·sqrt(SB)
    13	#else
    14		MOVD	x+0(FP), F0
    15		SQRTD	F0, F0
    16		MOVD	F0, ret+8(FP)
    17	#endif
    18		RET

View as plain text