Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,854 for len5 (0.11 sec)

  1. test/escape_reflect.go

    	return v.Len()
    }
    
    func len4(x map[int]int) int { // ERROR "x does not escape"
    	v := reflect.ValueOf(x)
    	return v.Len()
    }
    
    func len5(x chan int) int { // ERROR "x does not escape"
    	v := reflect.ValueOf(x)
    	return v.Len()
    }
    
    func cap1(x []int) int { // ERROR "x does not escape"
    	v := reflect.ValueOf(x) // ERROR "x does not escape"
    	return v.Cap()
    }
    
    func cap2(x [3]int) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/switch.go

    		// goto outerLabel
    		// len5:
    		//   ... search among length 5 strings ...
    		//   goto endLabel
    		// len8:
    		//   ... search among length 8 strings ...
    		//   goto endLabel
    		// ... other lengths ...
    		// outerLabel:
    		// switch len(s) {
    		//   case 5: goto len5
    		//   case 8: goto len8
    		//   ... other lengths ...
    		// }
    		// endLabel:
    
    		outerLabel := typecheck.AutoLabel(".s")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  3. src/crypto/aes/gcm_ppc64x.go

    		byte(len0 >> 16),
    		byte(len0 >> 8),
    		byte(len0),
    		byte(len1 >> 56),
    		byte(len1 >> 48),
    		byte(len1 >> 40),
    		byte(len1 >> 32),
    		byte(len1 >> 24),
    		byte(len1 >> 16),
    		byte(len1 >> 8),
    		byte(len1),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/topologymanager/scope_test.go

    		scope.podTopologyHints[string(tc.podUID)][tc.name] = TopologyHint{}
    		len1 = len(scope.podMap)
    		lenHints1 = len(scope.podTopologyHints)
    		err := scope.RemoveContainer(tc.containerID)
    		len2 = len(scope.podMap)
    		lenHints2 = len(scope.podTopologyHints)
    		if err != nil {
    			t.Errorf("Expected error to be nil but got: %v", err)
    		}
    		if len1-len2 != 1 {
    			t.Errorf("Remove Pod from podMap resulted in error")
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 10 11:44:15 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/FileUtils.java

            public int compare(File left, File right) {
                String leftPath = left.getPath();
                String rightPath = right.getPath();
    
                int len1 = leftPath.length();
                int len2 = rightPath.length();
                int lim = Math.min(len1, len2);
    
                int k = 0;
                while (k < lim) {
                    char c1 = leftPath.charAt(k);
                    char c2 = rightPath.charAt(k);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HashCode.java

            int result;
            int len1 = a.length;
            int len2 = b.length;
            int length = Math.min(len1, len2);
            for (int idx = 0; idx < length; idx++) {
                result = a[idx] - b[idx];
                if (result != 0) {
                    return result;
                }
            }
            return len1 - len2;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 14 19:25:07 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/builtin.go

    		fn := writebarrierfn("typedslicecopy", n.X.Type().Elem(), n.Y.Type().Elem())
    		n.X = cheapExpr(n.X, init)
    		ptrL, lenL := backingArrayPtrLen(n.X)
    		n.Y = cheapExpr(n.Y, init)
    		ptrR, lenR := backingArrayPtrLen(n.Y)
    		return mkcall1(fn, n.Type(), init, reflectdata.CopyElemRType(base.Pos, n), ptrL, lenL, ptrR, lenR)
    	}
    
    	if runtimecall {
    		// rely on runtime to instrument:
    		//  copy(n.Left, n.Right)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  8. tensorflow/c/tf_tensor_internal.h

    } TF_Tensor;
    
    class TF_ManagedBuffer : public tensorflow::TensorBuffer {
     public:
      TF_ManagedBuffer(void* data, size_t len,
                       void (*deallocator)(void* data, size_t len, void* arg),
                       void* deallocator_arg, bool owns_memory)
          : TensorBuffer(data),
            len_(len),
            deallocator_(deallocator),
            deallocator_arg_(deallocator_arg),
            owns_memory_(owns_memory) {}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 20:38:55 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  9. src/math/bits/make_tables.go

    package bits
    
    `)
    
    func main() {
    	buf := bytes.NewBuffer(header)
    
    	gen(buf, "ntz8tab", ntz8)
    	gen(buf, "pop8tab", pop8)
    	gen(buf, "rev8tab", rev8)
    	gen(buf, "len8tab", len8)
    
    	out, err := format.Source(buf.Bytes())
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	err = os.WriteFile("bits_tables.go", out, 0666)
    	if err != nil {
    		log.Fatal(err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/intrinsics_test.go

    			t.Errorf("Len16(1<<%d) = %d, want %d", i, got, want)
    		}
    	}
    }
    
    func TestBitLen8(t *testing.T) {
    	for i := 0; i <= 8; i++ {
    		got := bits.Len8(1 << i)
    		want := i + 1
    		if want == 9 {
    			want = 0
    		}
    		if got != want {
    			t.Errorf("Len8(1<<%d) = %d, want %d", i, got, want)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 03 18:33:02 UTC 2022
    - 1.1K bytes
    - Viewed (0)
Back to top