Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 128 for Unscaled (0.33 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/resource/scale_int_test.go

    			(math.MaxInt64 / 1000) * 1000},
    	}
    
    	for i, tt := range tests {
    		old := (&big.Int{}).Set(tt.unscaled)
    		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)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 11 03:04:14 UTC 2018
    - 2.1K bytes
    - Viewed (0)
  2. 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 {
    	dif := scale - newScale
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 29 20:41:44 UTC 2017
    - 2.5K bytes
    - Viewed (0)
  3. pkg/kubelet/apis/config/helpers_test.go

    		"Logging.Options.JSON.OutputRoutingOptions.InfoBufferSize.Quantity.d.Dec.scale",
    		"Logging.Options.JSON.OutputRoutingOptions.InfoBufferSize.Quantity.d.Dec.unscaled.abs[*]",
    		"Logging.Options.JSON.OutputRoutingOptions.InfoBufferSize.Quantity.d.Dec.unscaled.neg",
    		"Logging.Options.JSON.OutputRoutingOptions.InfoBufferSize.Quantity.i.scale",
    		"Logging.Options.JSON.OutputRoutingOptions.InfoBufferSize.Quantity.i.value",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. src/image/jpeg/writer_test.go

    			t.Errorf("unzig[zigzag[%d]] == %d", i, unzig[zigzag[i]])
    		}
    		if zigzag[unzig[i]] != i {
    			t.Errorf("zigzag[unzig[%d]] == %d", i, zigzag[unzig[i]])
    		}
    	}
    }
    
    // unscaledQuantInNaturalOrder are the unscaled quantization tables in
    // natural (not zig-zag) order, as specified in section K.1.
    var unscaledQuantInNaturalOrder = [nQuantIndex][blockSize]byte{
    	// Luminance.
    	{
    		16, 11, 10, 16, 24, 40, 51, 61,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:30 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    	// of an amount.  Arguably, this should be inf.RoundHalfUp (normal rounding), but that would have
    	// the side effect of rounding values < .5n to zero.
    	if v, ok := amount.Unscaled(); v != int64(0) || !ok {
    		amount.Round(amount, Nano.infScale(), inf.RoundUp)
    	}
    
    	// The max is just a simple cap.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/api/resource/amount.go

    }
    
    // Cmp returns 0 if a and b are equal, 1 if a is greater than b, or -1 if a is less than b.
    func (a int64Amount) Cmp(b int64Amount) int {
    	switch {
    	case a.scale == b.scale:
    		// compare only the unscaled portion
    	case a.scale > b.scale:
    		result, remainder, exact := divideByScaleInt64(b.value, a.scale-b.scale)
    		if !exact {
    			return a.AsDec().Cmp(b.AsDec())
    		}
    		if result == a.value {
    			switch {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 19:42:28 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  7. src/image/jpeg/writer.go

    	8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
    }
    
    type quantIndex int
    
    const (
    	quantIndexLuminance quantIndex = iota
    	quantIndexChrominance
    	nQuantIndex
    )
    
    // unscaledQuant are the unscaled quantization tables in zig-zag order. Each
    // encoder copies and scales the tables according to its quality parameter.
    // The values are derived from section K.1 after converting from natural to
    // zig-zag order.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/arm64/asm7.go

    		log.Fatalf("rounded up to a value that is not a power of 2: %d\n", to)
    	}
    	return (x + to - 1) &^ (to - 1)
    }
    
    // splitImm24uScaled splits an immediate into a scaled 12 bit unsigned lo value
    // and an unscaled shifted 12 bit unsigned hi value. These are typically used
    // by adding or subtracting the hi value and using the lo value as the offset
    // for a load or store.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 201.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/arch/arm64/arm64asm/inst.json

    {"Name":"LDTRB","Bits":"0|0|1|1|1|0|0|0|0|1|0|imm9:9|1|0|Rn:5|Rt:5","Arch":"Unscaled offset variant","Syntax":"LDTRB <Wt>, [<Xn|SP>{, #<simm>}]","Code":"","Alias":""},
    {"Name":"LDTRH","Bits":"0|1|1|1|1|0|0|0|0|1|0|imm9:9|1|0|Rn:5|Rt:5","Arch":"Unscaled offset variant","Syntax":"LDTRH <Wt>, [<Xn|SP>{, #<simm>}]","Code":"","Alias":""},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 17:57:48 UTC 2017
    - 234.7K bytes
    - Viewed (0)
  10. src/runtime/time_windows_arm.s

    	MOVW    R3, R1	      // R4:R3 -> R2:R1
    	MOVW    R4, R2
    
    	// multiply nanoseconds by reciprocal of 10**9 (scaled by 2**61)
    	// to get seconds (96 bit scaled result)
    	MOVW	$0x89705f41, R3		// 2**61 * 10**-9
    	MULLU	R1,R3,(R6,R5)		// R7:R6:R5 = R2:R1 * R3
    	MOVW	$0,R7
    	MULALU	R2,R3,(R7,R6)
    
    	// unscale by discarding low 32 bits, shifting the rest by 29
    	MOVW	R6>>29,R6		// R7:R6 = (R7:R6:R5 >> 61)
    	ORR	R7<<3,R6
    	MOVW	R7>>29,R7
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 17:19:45 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top