Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 587 for rounds (0.41 sec)

  1. src/image/gif/fuzz_test.go

    			}
    			img1, err := Decode(&w)
    			if err != nil {
    				t.Fatalf("failed to decode roundtripped image: %s", err)
    			}
    			got := img1.Bounds()
    			want := img.Bounds()
    			if !got.Eq(want) {
    				t.Fatalf("roundtripped image bounds have changed, got: %v, want: %v", got, want)
    			}
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 15:57:34 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  2. src/image/png/reader_test.go

    	// Write the IMAGE.
    	io.WriteString(w, "IMAGE {\n    pixels hex\n")
    	for y := bounds.Min.Y; y < bounds.Max.Y; y++ {
    		switch {
    		case cm == color.GrayModel:
    			for x := bounds.Min.X; x < bounds.Max.X; x++ {
    				gray := png.At(x, y).(color.Gray)
    				fmt.Fprintf(w, "%02x", gray.Y)
    			}
    		case cm == color.Gray16Model:
    			for x := bounds.Min.X; x < bounds.Max.X; x++ {
    				gray16 := png.At(x, y).(color.Gray16)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 24 12:12:12 UTC 2022
    - 28.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/dirent.go

    	switch size {
    	case 1:
    		return uint64(b[0])
    	case 2:
    		_ = b[1] // bounds check hint to compiler; see golang.org/issue/14808
    		return uint64(b[1]) | uint64(b[0])<<8
    	case 4:
    		_ = b[3] // bounds check hint to compiler; see golang.org/issue/14808
    		return uint64(b[3]) | uint64(b[2])<<8 | uint64(b[1])<<16 | uint64(b[0])<<24
    	case 8:
    		_ = b[7] // bounds check hint to compiler; see golang.org/issue/14808
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. src/runtime/cgo/gcc_stack_darwin.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <pthread.h>
    #include "libcgo.h"
    
    void
    x_cgo_getstackbound(uintptr bounds[2])
    {
    	void* addr;
    	size_t size;
    	pthread_t p;
    
    	p = pthread_self();
    	addr = pthread_get_stackaddr_np(p); // high address (!)
    	size = pthread_get_stacksize_np(p);
    
    	// bounds points into the Go stack. TSAN can't see the synchronization
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 01:32:45 UTC 2024
    - 617 bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/conc_alloc.go

    	// See if the solution does not run into any bounds.
    	fairProp := requiredSumF / targetSum
    	if lbRange.max <= fairProp && fairProp <= ubRange.min { // no bounds matter
    		for idx := range classes {
    			ans[idx] = relativeItems[idx].target * fairProp
    		}
    		return ans, fairProp, nil
    	}
    	// Sadly, some bounds matter.
    	// We find the solution by sorting the bounds and considering progressively
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  6. src/runtime/cgo/gcc_stack_unix.c

    	// same as the default stack bounds.
    	pthread_attr_getstacksize(&attr, &size);
    	addr = __builtin_frame_address(0) + 4096 - size;
    #endif
    	pthread_attr_destroy(&attr);
    
    	// bounds points into the Go stack. TSAN can't see the synchronization
    	// in Go around stack reuse.
    	_cgo_tsan_acquire();
    	bounds[0] = (uintptr)addr;
    	bounds[1] = (uintptr)addr + size;
    	_cgo_tsan_release();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 03:44:11 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. cmd/metrics-v3-system-cpu.go

    	m.Set(sysCPUSteal, cpuStealVal)
    
    	// metrics-resource.go runs a job to collect resource metrics including their Avg values and
    	// stores them in resourceMetricsMap. We can use it to get the Avg values of CPU idle and IOWait.
    	cpuResourceMetrics, found := resourceMetricsMap[cpuSubsystem]
    	if found {
    		if cpuIdleMetric, ok := cpuResourceMetrics[getResourceKey(cpuIdle, nil)]; ok {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Apr 23 23:56:12 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. src/image/gif/reader_test.go

    	copy(gif, testGIF)
    	// Make the bounds too big, just by one.
    	gif[32] = 2
    	want := "gif: frame bounds larger than image bounds"
    	try(t, gif, want)
    
    	// Make the bounds too small; does not trigger bounds
    	// check, but now there's too much data.
    	gif[32] = 0
    	want = "gif: too much image data"
    	try(t, gif, want)
    	gif[32] = 1
    
    	// Make the bounds really big, expect an error.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:15:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/reflect/Types.java

       * Returns {@code ? extends X} if any of {@code bounds} is a subtype of {@code X[]}; or null
       * otherwise.
       */
      @CheckForNull
      private static Type subtypeOfComponentType(Type[] bounds) {
        for (Type bound : bounds) {
          Type componentType = getComponentType(bound);
          if (componentType != null) {
            // Only the first bound can be a class or array.
            // Bounds after the first can only be interfaces.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/apis/kubeadm/fuzzer/fuzzer.go

    	// Avoid round tripping the ClusterConfiguration embedded in the InitConfiguration, since it is
    	// only present in the internal version and not in public versions
    	obj.ClusterConfiguration = kubeadm.ClusterConfiguration{}
    
    	// Adds the default bootstrap token to get the round trip working
    	obj.BootstrapTokens = []bootstraptokenv1.BootstrapToken{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 13 06:41:07 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top