Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for j2 (0.03 sec)

  1. src/container/heap/heap_test.go

    	t.Helper()
    	n := h.Len()
    	j1 := 2*i + 1
    	j2 := 2*i + 2
    	if j1 < n {
    		if h.Less(j1, i) {
    			t.Errorf("heap invariant invalidated [%d] = %d > [%d] = %d", i, h[i], j1, h[j1])
    			return
    		}
    		h.verify(t, j1)
    	}
    	if j2 < n {
    		if h.Less(j2, i) {
    			t.Errorf("heap invariant invalidated [%d] = %d > [%d] = %d", i, h[i], j1, h[j2])
    			return
    		}
    		h.verify(t, j2)
    	}
    }
    
    func TestInit0(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/main/java/org/gradle/internal/problems/failure/FailurePrinter.java

                int j1 = frames1.size() - 1;
                int j2 = frames2.size() - 1;
                while (j1 >= 0 && j2 >= 0 && frames1.get(j1).equals(frames2.get(j2))) {
                    j1--;
                    j2--;
                }
                return frames1.size() - (j1 + 1);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 23:45:41 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. src/container/heap/heap.go

    }
    
    func down(h Interface, i0, n int) bool {
    	i := i0
    	for {
    		j1 := 2*i + 1
    		if j1 >= n || j1 < 0 { // j1 < 0 after int overflow
    			break
    		}
    		j := j1 // left child
    		if j2 := j1 + 1; j2 < n && h.Less(j2, j1) {
    			j = j2 // = 2*i + 2  // right child
    		}
    		if !h.Less(j, i) {
    			break
    		}
    		h.Swap(i, j)
    		i = j
    	}
    	return i > i0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:10 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. src/internal/trace/internal/oldtrace/order.go

    func heapDown(h *orderEventList, i0, n int) bool {
    	i := i0
    	for {
    		j1 := 2*i + 1
    		if j1 >= n || j1 < 0 { // j1 < 0 after int overflow
    			break
    		}
    		j := j1 // left child
    		if j2 := j1 + 1; j2 < n && h.Less(j2, j1) {
    			j = j2 // = 2*i + 2  // right child
    		}
    		if !h.Less(j, i) {
    			break
    		}
    		(*h)[i], (*h)[j] = (*h)[j], (*h)[i]
    		i = j
    	}
    	return i > i0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. test/typeparam/listimp.dir/main.go

    	s1 := &a.List[string]{s2, "bb"}
    	if got, want := s1.Largest(), "dd"; got != want {
    		panic(fmt.Sprintf("got %s, want %s", got, want))
    	}
    	j3 := &a.ListNum[int]{nil, 1}
    	j2 := &a.ListNum[int]{j3, 32}
    	j1 := &a.ListNum[int]{j2, 2}
    	if got, want := j1.ClippedLargest(), 2; got != want {
    		panic(fmt.Sprintf("got %d, want %d", got, want))
    	}
    	g3 := &a.ListNum[float64]{nil, 13.5}
    	g2 := &a.ListNum[float64]{g3, 1.2}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  6. test/convert3.go

    var d2 = (chan<- int)(c)
    
    var e *[4]int
    var f1 []int = e[0:]
    var f2 = []int(e[0:])
    
    var g = []int(nil)
    
    type H []int
    type J []int
    
    var h H
    var j1 J = h // ERROR "compat|illegal|cannot"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 02:19:43 UTC 2012
    - 544 bytes
    - Viewed (0)
  7. test/typeparam/list.go

    	s1 := &_List[string]{s2, "bb"}
    	if got, want := s1.Largest(), "dd"; got != want {
    		panic(fmt.Sprintf("got %s, want %s", got, want))
    	}
    
    	j3 := &_ListNum[int]{nil, 1}
    	j2 := &_ListNum[int]{j3, 32}
    	j1 := &_ListNum[int]{j2, 2}
    	if got, want := j1.ClippedLargest(), 2; got != want {
    		panic(fmt.Sprintf("got %d, want %d", got, want))
    	}
    	g3 := &_ListNum[float64]{nil, 13.5}
    	g2 := &_ListNum[float64]{g3, 1.2}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Dec 03 17:08:51 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/crypto/chacha20/chacha_generic.go

    		binary.LittleEndian.Uint32(nonce[8:12]),
    	}
    	return c, nil
    }
    
    // The constant first 4 words of the ChaCha20 state.
    const (
    	j0 uint32 = 0x61707865 // expa
    	j1 uint32 = 0x3320646e // nd 3
    	j2 uint32 = 0x79622d32 // 2-by
    	j3 uint32 = 0x6b206574 // te k
    )
    
    const blockSize = 64
    
    // quarterRound is the core of ChaCha20. It shuffles the bits of 4 state words.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 00:11:50 UTC 2022
    - 13.9K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/crypto/chacha20/chacha_s390x.s

    // BSWAP: swap bytes in each 4-byte element
    DATA ·constants<>+0x00(SB)/4, $0x03020100
    DATA ·constants<>+0x04(SB)/4, $0x07060504
    DATA ·constants<>+0x08(SB)/4, $0x0b0a0908
    DATA ·constants<>+0x0c(SB)/4, $0x0f0e0d0c
    // J0: [j0, j1, j2, j3]
    DATA ·constants<>+0x10(SB)/4, $0x61707865
    DATA ·constants<>+0x14(SB)/4, $0x3320646e
    DATA ·constants<>+0x18(SB)/4, $0x79622d32
    DATA ·constants<>+0x1c(SB)/4, $0x6b206574
    
    #define BSWAP V5
    #define J0    V6
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  10. test/codegen/arithmetic.go

    func constantFold1(i0, j0, i1, j1, i2, j2, i3, j3 int) (int, int, int, int) {
    	// arm64:"SUB","ADD\t[$]2"
    	// ppc64x:"SUB","ADD\t[$]2"
    	r0 := (i0 + 3) - (j0 + 1)
    	// arm64:"SUB","SUB\t[$]4"
    	// ppc64x:"SUB","ADD\t[$]-4"
    	r1 := (i1 - 3) - (j1 + 1)
    	// arm64:"SUB","ADD\t[$]4"
    	// ppc64x:"SUB","ADD\t[$]4"
    	r2 := (i2 + 3) - (j2 - 1)
    	// arm64:"SUB","SUB\t[$]2"
    	// ppc64x:"SUB","ADD\t[$]-2"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:28:00 UTC 2024
    - 15.2K bytes
    - Viewed (0)
Back to top