- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for scaledValue (0.2 sec)
-
src/cmd/vendor/github.com/google/pprof/internal/driver/driver_focus.go
} scaledValue2, unit2 := measurement.Scale(v, ranges[1][2], unit) if unit != unit2 { return nil } return func(v int64, u string) bool { sv, su := measurement.Scale(v, u, unit) return su == unit && sv >= scaledValue && sv <= scaledValue2 } } func warnNoMatches(match bool, option string, ui plugin.UI) { if !match { ui.PrintErr(option + " expression matched no samples") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 22 23:33:06 UTC 2020 - 6.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/scale_int_test.go
got := scaledValue(tt.unscaled, tt.scale, tt.newScale) if got != tt.want { t.Errorf("#%d: got = %v, want %v", i, got, tt.want) } if tt.unscaled.Cmp(old) != 0 { t.Errorf("#%d: unscaled = %v, want %v", i, tt.unscaled, old) } } } func BenchmarkScaledValueSmall(b *testing.B) { s := big.NewInt(1000) for i := 0; i < b.N; i++ { scaledValue(s, 3, 0) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Feb 11 03:04:14 UTC 2018 - 2.1K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/HeapProportionalCacheSizer.java
if (referenceValue < granularity) { throw new IllegalArgumentException("reference value must be larger than granularity"); } int scaledValue = (int) ((double) referenceValue * sizingRatio) / granularity * granularity; return Math.max(scaledValue, granularity); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/scale_int.go
return &big.Int{} } } // scaledValue scales given unscaled value from scale to new Scale and returns // an int64. It ALWAYS rounds up the result when scale down. The final result might // overflow. // // scale, newScale represents the scale of the unscaled decimal. // The mathematical value of the decimal is unscaled * 10**(-scale). func scaledValue(unscaled *big.Int, scale, newScale int) int64 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 29 20:41:44 UTC 2017 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
func (q *Quantity) Value() int64 { return q.ScaledValue(0) } // MilliValue returns the value of ceil(q * 1000); this could overflow an int64; // if that's a concern, call Value() first to verify the number is small enough. func (q *Quantity) MilliValue() int64 { return q.ScaledValue(Milli) } // ScaledValue returns the value of ceil(q / 10^scale).
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 23.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/amount.go
import ( "math/big" "strconv" inf "gopkg.in/inf.v0" ) // Scale is used for getting and setting the base-10 scaled value. // Base-2 scales are omitted for mathematical simplicity. // See Quantity.ScaledValue for more details. type Scale int32 // infScale adapts a Scale value to an inf.Scale value. func (s Scale) infScale() inf.Scale { return inf.Scale(-s) // inf.Scale is upside-down } const (
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 13 19:42:28 UTC 2023 - 9.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go
t.Errorf("Expected %v, got %v; %#v", e, a, q) } q2, err := ParseQuantity(q.String()) if err != nil { t.Errorf("Round trip failed on %v", q) } if e, a := item.value, q2.ScaledValue(item.scale); e != a { t.Errorf("Expected %v, got %v", e, a) } q3 := NewQuantity(0, DecimalSI) q3.SetScaled(item.value, item.scale) if q.Cmp(*q3) != 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 49.4K bytes - Viewed (0) -
migrator/column_type.go
ColumnTypeValue sql.NullString PrimaryKeyValue sql.NullBool UniqueValue sql.NullBool AutoIncrementValue sql.NullBool LengthValue sql.NullInt64 DecimalSizeValue sql.NullInt64 ScaleValue sql.NullInt64 NullableValue sql.NullBool ScanTypeValue reflect.Type CommentValue sql.NullString DefaultValueValue sql.NullString } // Name returns the name or alias of the column.
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Mar 24 01:31:58 UTC 2022 - 3.3K bytes - Viewed (0)