- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,854 for len3 (0.04 sec)
-
test/escape_reflect.go
return v.OverflowInt(1 << 62) } func len1(x []int) int { // ERROR "x does not escape" v := reflect.ValueOf(x) // ERROR "x does not escape" return v.Len() } func len2(x [3]int) int { v := reflect.ValueOf(x) // ERROR "x does not escape" return v.Len() } func len3(x string) int { // ERROR "x does not escape" v := reflect.ValueOf(x) // ERROR "x does not escape"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:50:24 UTC 2023 - 13.1K bytes - Viewed (0) -
src/internal/types/testdata/check/builtins0.go
func len2() { f1 := func() (x []int) { return } f2 := func() (x, y []int) { return } _ = len(f0 /* ERROR "used as value" */ ()) _ = len(f1()) _ = len(f2()) // ERROR "too many arguments" } // test cases for issue 7387 func len3() { var f = func() int { return 0 } var x = f() const ( _ = len([4]int{}) _ = len([4]int{x}) _ = len /* ERROR "not constant" */ ([4]int{f()})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.3K bytes - Viewed (0) -
src/crypto/aes/gcm_ppc64x.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 6.4K bytes - Viewed (0) -
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) -
src/cmd/compile/internal/test/intrinsics_test.go
t.Errorf("Len64(1<<%d) = %d, want %d", i, got, want) } } } func TestBitLen32(t *testing.T) { for i := 0; i <= 32; i++ { got := bits.Len32(1 << i) want := i + 1 if want == 33 { want = 0 } if got != want { t.Errorf("Len32(1<<%d) = %d, want %d", i, got, want) } } } func TestBitLen16(t *testing.T) { for i := 0; i <= 16; i++ { got := bits.Len16(1 << i) want := i + 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 03 18:33:02 UTC 2022 - 1.1K bytes - Viewed (0) -
src/math/bits/example_test.go
} func ExampleLen8() { fmt.Printf("Len8(%08b) = %d\n", 8, bits.Len8(8)) // Output: // Len8(00001000) = 4 } func ExampleLen16() { fmt.Printf("Len16(%016b) = %d\n", 8, bits.Len16(8)) // Output: // Len16(0000000000001000) = 4 } func ExampleLen32() { fmt.Printf("Len32(%032b) = %d\n", 8, bits.Len32(8)) // Output: // Len32(00000000000000000000000000001000) = 4 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:16:09 UTC 2019 - 5.3K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/FileUtils.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 06:47:40 UTC 2024 - 8.2K bytes - Viewed (0) -
platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HashCode.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Dec 14 19:25:07 UTC 2023 - 10.9K bytes - Viewed (0) -
src/math/bits/bits.go
return x>>32 | x<<32 } // --- Len --- // Len returns the minimum number of bits required to represent x; the result is 0 for x == 0. func Len(x uint) int { if UintSize == 32 { return Len32(uint32(x)) } return Len64(uint64(x)) } // Len8 returns the minimum number of bits required to represent x; the result is 0 for x == 0. func Len8(x uint8) int { return int(len8tab[x]) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 17.9K bytes - Viewed (0) -
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)