- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for archHypot (0.29 sec)
-
src/math/hypot_amd64.s
// license that can be found in the LICENSE file. #include "textflag.h" #define PosInf 0x7FF0000000000000 #define NaN 0x7FF8000000000001 // func archHypot(p, q float64) float64 TEXT ·archHypot(SB),NOSPLIT,$0 // test bits for special cases MOVQ p+0(FP), BX MOVQ $~(1<<63), AX ANDQ AX, BX // p = |p| MOVQ q+8(FP), CX ANDQ AX, CX // q = |q| MOVQ $PosInf, AX
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 15 15:48:19 UTC 2021 - 1.1K bytes - Viewed (0) -
src/math/hypot_386.s
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "textflag.h" // func archHypot(p, q float64) float64 TEXT ·archHypot(SB),NOSPLIT,$0 // test bits for not-finite MOVL p_hi+4(FP), AX // high word p ANDL $0x7ff00000, AX CMPL AX, $0x7ff00000 JEQ not_finite MOVL q_hi+12(FP), AX // high word q
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 15 15:48:19 UTC 2021 - 1.8K bytes - Viewed (0) -
src/math/hypot_asm.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build 386 || amd64 package math const haveArchHypot = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 264 bytes - Viewed (0) -
src/math/hypot_noasm.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !386 && !amd64 package math const haveArchHypot = false func archHypot(p, q float64) float64 { panic("not implemented")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 297 bytes - Viewed (0) -
src/math/hypot.go
// // Special cases are: // // Hypot(±Inf, q) = +Inf // Hypot(p, ±Inf) = +Inf // Hypot(NaN, q) = NaN // Hypot(p, NaN) = NaN func Hypot(p, q float64) float64 { if haveArchHypot { return archHypot(p, q) } return hypot(p, q) } func hypot(p, q float64) float64 { p, q = Abs(p), Abs(q) // special cases switch { case IsInf(p, 1) || IsInf(q, 1): return Inf(1) case IsNaN(p) || IsNaN(q):
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 850 bytes - Viewed (0)