- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 285 for ABS (0.02 sec)
-
src/math/big/float.go
case x.exp > allBits: z.a.abs = z.a.abs.shl(x.mant, uint(x.exp-allBits)) z.b.abs = z.b.abs[:0] // == 1 (see Rat) // z already in normal form default: z.a.abs = z.a.abs.set(x.mant) z.b.abs = z.b.abs[:0] // == 1 (see Rat) // z already in normal form case x.exp < allBits: z.a.abs = z.a.abs.set(x.mant) t := z.b.abs.setUint64(1) z.b.abs = t.shl(t, uint(allBits-x.exp)) z.norm()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 15:46:54 UTC 2024 - 44.5K bytes - Viewed (0) -
src/math/big/rat_test.go
// A denominator of length 0 is interpreted as 1. Make sure that // "materialization" of the denominator doesn't lead to setting // the underlying array element 0 to 1. r := &Rat{Int{abs: nat{991}}, Int{abs: make(nat, 0, 1)}} acc.f(r) if d := r.b.abs[:1][0]; d != 0 { t.Errorf("%s modified denominator: got %d, want 0", acc.name, d) } } } func TestDenomRace(t *testing.T) { x := NewRat(1, 2) const N = 3
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 07 00:15:59 UTC 2022 - 18.9K bytes - Viewed (0) -
pkg/file/file.go
PrivateFileMode = 0o600 ) // DirEquals check if two directories are referring to the same directory func DirEquals(a, b string) (bool, error) { aa, err := filepath.Abs(a) if err != nil { return false, err } bb, err := filepath.Abs(b) if err != nil { return false, err } return aa == bb, nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 11 21:42:29 UTC 2024 - 3K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/pos.go
return +1 } return 0 } func (pos Pos) String() string { rel := position_{pos.RelFilename(), pos.RelLine(), pos.RelCol()} abs := position_{pos.Base().Pos().RelFilename(), pos.Line(), pos.Col()} s := rel.String() if rel != abs { s += "[" + abs.String() + "]" } return s } // TODO(gri) cleanup: find better name, avoid conflict with position in error_test.go type position_ struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 20:44:57 UTC 2024 - 5.6K bytes - Viewed (0) -
src/time/zoneinfo.go
// the only caller that cares, which is Date. if ysec < startSec { return stdName, stdOffset, abs, startSec + abs, stdIsDST, true } else if ysec >= endSec { return stdName, stdOffset, endSec + abs, abs + 365*secondsPerDay, stdIsDST, true } else { return dstName, dstOffset, startSec + abs, endSec + abs, dstIsDST, true } } // tzsetName returns the timezone name at the start of the tzset string s,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:30 UTC 2024 - 18.2K bytes - Viewed (0) -
pkg/controller/podautoscaler/replica_calculator.go
if err != nil { return 0, 0, 0, time.Time{}, err } scaleUpWithUnready := len(unreadyPods) > 0 && usageRatio > 1.0 if !scaleUpWithUnready && len(missingPods) == 0 { if math.Abs(1.0-usageRatio) <= c.tolerance { // return the current replicas if the change would be too small return currentReplicas, utilization, rawUtilization, timestamp, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Aug 19 03:31:34 UTC 2023 - 20.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/eventclock/fake_event_clock_test.go
const batchSize = 100 times := make(chan time.Time, batchSize+1) try := func(abs, strict bool, d time.Duration) { f := func(u time.Time) { realD := ec.Since(now) atomic.AddInt32(&numDone, 1) times <- u if realD < d || strict && strictable && realD > d+fuzz { t.Errorf("Asked for %v, got %v", d, realD) } } if abs { ec.EventAfterTime(f, now.Add(d)) } else { ec.EventAfterDuration(f, d) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Aug 07 04:07:31 UTC 2021 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/region-control-flow-to-functional.mlir
// CHECK-NEXT: "tf.Abs" func.func @testSimple(%arg0: tensor<i1>, %arg1: tensor<*xf32>) -> tensor<*xf32> { // CHECK: "tf.If" // CHECK-NOT: attr1 // CHECK-SAME: else_branch = @test_else_name // CHECK-SAME: then_branch = @test_then_name // CHECK-SAME: _attr0 = false // CHECK-SAME: _xla_propagate_compile_time_consts = true %0 = "tf.IfRegion"(%arg0) ({ %1 = "tf.Abs"(%arg1) : (tensor<*xf32>) -> tensor<*xf32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 02 11:15:34 UTC 2024 - 44.3K bytes - Viewed (0) -
src/go/internal/gcimporter/gcimporter.go
} var noext string switch { default: // "x" -> "$GOPATH/pkg/$GOOS_$GOARCH/x.ext", "x" // Don't require the source files to be present. if abs, err := filepath.Abs(srcDir); err == nil { // see issue 14282 srcDir = abs } var bp *build.Package bp, err = build.Import(path, srcDir, build.FindOnly|build.AllowBinary) if bp.PkgObj == "" { if bp.Goroot && bp.Dir != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 6.4K bytes - Viewed (0) -
src/time/format_rfc3339.go
func (t Time) appendFormatRFC3339(b []byte, nanos bool) []byte { _, offset, abs := t.locabs() // Format date. year, month, day, _ := absDate(abs, true) b = appendInt(b, year, 4) b = append(b, '-') b = appendInt(b, int(month), 2) b = append(b, '-') b = appendInt(b, day, 2) b = append(b, 'T') // Format time. hour, min, sec := absClock(abs) b = appendInt(b, hour, 2) b = append(b, ':') b = appendInt(b, min, 2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 18 19:59:26 UTC 2023 - 5.7K bytes - Viewed (0)