- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for fabs (0.07 sec)
-
src/math/all_test.go
} } } func TestAbs(t *testing.T) { for i := 0; i < len(vf); i++ { if f := Abs(vf[i]); fabs[i] != f { t.Errorf("Abs(%g) = %g, want %g", vf[i], f, fabs[i]) } } for i := 0; i < len(vffabsSC); i++ { if f := Abs(vffabsSC[i]); !alike(fabsSC[i], f) { t.Errorf("Abs(%g) = %g, want %g", vffabsSC[i], f, fabsSC[i]) } } } func TestDim(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 07 17:39:26 UTC 2023 - 86.8K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/PPC64.rules
// A particular pattern seen in cgo code: (AND (MOVDconst [c]) x:(MOVBZload _ _)) => (ANDconst [c&0xFF] x) // floating point negative abs (FNEG (F(ABS|NABS) x)) => (F(NABS|ABS) x) // floating-point fused multiply-add/sub (F(ADD|SUB) (FMUL x y) z) && x.Block.Func.useFMA(v) => (FM(ADD|SUB) x y z) (F(ADDS|SUBS) (FMULS x y) z) && x.Block.Func.useFMA(v) => (FM(ADDS|SUBS) x y z)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:02:52 UTC 2024 - 53.2K bytes - Viewed (0) -
src/cmd/asm/internal/asm/testdata/ppc64.s
FNMSUBS F1, F2, F3, F4 // ec8110fc FNMSUBSCC F1, F2, F3, F4 // ec8110fd FSEL F1, F2, F3, F4 // fc8110ee FSELCC F1, F2, F3, F4 // fc8110ef FABS F1, F2 // fc400a10 FNABS F1, F2 // fc400910 FABSCC F1, F2 // fc400a11 FNABSCC F1, F2 // fc400911 FNEG F1, F2 // fc400850
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 21:53:50 UTC 2024 - 50.2K bytes - Viewed (0) -
src/cmd/internal/obj/mips/asm0.go
case 32: /* fadd fr1,[fr2],fr3 */ r := p.Reg if r == obj.REG_NONE { r = p.To.Reg } o1 = OP_FRRR(c.oprrr(p.As), p.From.Reg, r, p.To.Reg) case 33: /* fabs fr1, fr3 */ o1 = OP_FRRR(c.oprrr(p.As), obj.REG_NONE, p.From.Reg, p.To.Reg) case 34: /* mov $con,fr ==> or/add $i,t; mov t,fr */ a := AADDU if o.a1 == C_ANDCON { a = AOR }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 16 17:46:09 UTC 2024 - 53.6K bytes - Viewed (0) -
src/cmd/internal/obj/loong64/asm.go
case 32: // fadd fr1,[fr2],fr3 r := int(p.Reg) if r == 0 { r = int(p.To.Reg) } o1 = OP_RRR(c.oprrr(p.As), uint32(p.From.Reg), uint32(r), uint32(p.To.Reg)) case 33: // fabs fr1, fr3 o1 = OP_RRR(c.oprrr(p.As), uint32(0), uint32(p.From.Reg), uint32(p.To.Reg)) case 34: // mov $con,fr v := c.regoff(&p.From) a := AADDU if o.from1 == C_ANDCON { a = AOR }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:04:54 UTC 2024 - 61.8K bytes - Viewed (0) -
src/math/big/int_test.go
"fmt" "internal/testenv" "math" "math/rand" "strconv" "strings" "testing" "testing/quick" ) func isNormalized(x *Int) bool { if len(x.abs) == 0 { return !x.neg } // len(x.abs) > 0 return x.abs[len(x.abs)-1] != 0 } type funZZ func(z, x, y *Int) *Int type argZZ struct { z, x, y *Int } var sumZZ = []argZZ{ {NewInt(0), NewInt(0), NewInt(0)},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 58.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc
// // We don't have a frac(x) primitive in XLA and computing it is tricky, but // because abs(sin(pi * x)) = abs(sin(pi * abs(x))), it's good enough for // our purposes to use abs(frac(x)) = abs(x) - floor(abs(x)). // // Furthermore, pi * abs(frac(x)) loses precision when abs(frac(x)) is close // to 1. To remedy this, we can use the fact that sin(pi * x) in the domain
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 74.9K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheProblemReportingIntegrationTest.groovy
given: file('provider.txt').text = 'provider' file('fis-path.txt').text = 'fis-path' file('fis-file.txt').text = 'fis-file' file('fis-abs.txt').text = 'fis-abs' buildFile ''' providers.fileContents(layout.projectDirectory.file("provider.txt")).with { provider -> println("provider = ${provider.asText.get()}") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 56.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go
} func float64close(x, y float64) bool { x0 := float64NaNTo0(x) y0 := float64NaNTo0(y) diff := math.Abs(x0 - y0) den := math.Max(math.Abs(x0), math.Abs(y0)) return den == 0 || diff/den < 1e-10 } func uint64max(a, b uint64) uint64 { if b > a { return b } return a }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 26 12:55:23 UTC 2023 - 58.4K bytes - Viewed (0) -
src/testing/testing.go
// This is known as "black box" testing. // // package abs_test // // import ( // "testing" // // "path_to_pkg/abs" // ) // // func TestAbs(t *testing.T) { // got := abs.Abs(-1) // if got != 1 { // t.Errorf("Abs(-1) = %d; want 1", got) // } // } // // For more detail, run "go help test" and "go help testflag". // // # Benchmarks //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0)