Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,530 for len4 (0.09 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/crypto/aes/gcm_s390x.go

    func (x *gcmCount) inc() {
    	byteorder.BePutUint32(x[len(x)-4:], byteorder.BeUint32(x[len(x)-4:])+1)
    }
    
    // gcmLengths writes len0 || len1 as big-endian values to a 16-byte array.
    func gcmLengths(len0, len1 uint64) [16]byte {
    	v := [16]byte{}
    	byteorder.BePutUint64(v[0:], len0)
    	byteorder.BePutUint64(v[8:], len1)
    	return v
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.3K 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. subprojects/core/src/testFixtures/groovy/org/gradle/util/BinaryDiffUtils.groovy

        }
    
        public static int levenshteinDistance(byte[] lhs, byte[] rhs) {
            int len0 = lhs.length + 1;
            int len1 = rhs.length + 1;
    
            // the array of distances
            int[] cost = new int[len0];
            int[] newcost = new int[len0];
    
            // initial cost of skipping prefix in byte[] s0
            for (int i = 0; i < len0; i++) {
                cost[i] = i
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 14 11:47:34 UTC 2016
    - 2.4K bytes
    - Viewed (0)
  5. 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)
  6. src/math/big/arith_arm64.s

    	LDP.P	16(R1), (R4, R5)
    	ADCS	$0, R4, R8	// c, z[i] = x[i] + c
    	ADCS	$0, R5, R9
    	STP.P	(R8, R9), 16(R3)
    	SUB	$2, R0
    loop:				// do four times per round
    	vwOneIter(ADCS, R0, len1)
    	B	loop
    len1:
    	CSET	HS, R2		// extract carry flag
    len0:
    	MOVD	R2, c+56(FP)
    done:
    	RET
    large:
    	AND	$0x3, R0, R10
    	AND	$~0x3, R0
    	// unrolling for the first 1~4 elements to avoid saving the carry
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  7. subprojects/core-api/src/main/java/org/gradle/api/file/RelativePath.java

        }
    
        @Override
        public int compareTo(RelativePath o) {
            int len1 = segments.length;
            int len2 = o.segments.length;
    
            if (len1 != len2) {
                return len1 - len2;
            }
    
            int lim = Math.min(len1, len2);
            String[] v1 = segments;
            String[] v2 = o.segments;
    
            int k = 0;
            while (k < lim) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 30 05:20:08 UTC 2023
    - 9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/intrinsics_test.go

    package test
    
    import (
    	"math/bits"
    	"testing"
    )
    
    func TestBitLen64(t *testing.T) {
    	for i := 0; i <= 64; i++ {
    		got := bits.Len64(1 << i)
    		want := i + 1
    		if want == 65 {
    			want = 0
    		}
    		if got != want {
    			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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 03 18:33:02 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  9. src/math/bits/example_test.go

    	// 0000000000000000000000000000000000000000000000000000000000001111
    	// 0000111100000000000000000000000000000000000000000000000000000000
    }
    
    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() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:16:09 UTC 2019
    - 5.3K bytes
    - Viewed (0)
  10. 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)
Back to top