Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 212 for Cmp (0.05 sec)

  1. src/sort/search.go

    //	}
    func Find(n int, cmp func(int) int) (i int, found bool) {
    	// The invariants here are similar to the ones in Search.
    	// Define cmp(-1) > 0 and cmp(n) <= 0
    	// Invariant: cmp(i-1) > 0, cmp(j) <= 0
    	i, j := 0, n
    	for i < j {
    		h := int(uint(i+j) >> 1) // avoid overflow when computing h
    		// i ≤ h < j
    		if cmp(h) > 0 {
    			i = h + 1 // preserves cmp(i-1) > 0
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/PPC64latelower.rules

    // older targets
    (SETBC [2] cmp) && buildcfg.GOPPC64 <= 9 => (ISELZ [2] (MOVDconst [1]) cmp)
    (SETBCR [2] cmp) && buildcfg.GOPPC64 <= 9 => (ISELZ [6] (MOVDconst [1]) cmp)
    (SETBC [0] cmp) && buildcfg.GOPPC64 <= 9 => (ISELZ [0] (MOVDconst [1]) cmp)
    (SETBCR [0] cmp) && buildcfg.GOPPC64 <= 9 => (ISELZ [4] (MOVDconst [1]) cmp)
    (SETBC [1] cmp) && buildcfg.GOPPC64 <= 9 => (ISELZ [1] (MOVDconst [1]) cmp)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/internal/fmtsort/sort.go

    		return cmp.Compare(aVal.Int(), bVal.Int())
    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
    		return cmp.Compare(aVal.Uint(), bVal.Uint())
    	case reflect.String:
    		return cmp.Compare(aVal.String(), bVal.String())
    	case reflect.Float32, reflect.Float64:
    		return cmp.Compare(aVal.Float(), bVal.Float())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/text/internal/tag/tag.go

    		return cmp(s[i*4:i*4+n], key) != -1
    	})
    	i := index * 4
    	if cmp(s[i:i+len(key)], key) != 0 {
    		return -1
    	}
    	return index
    }
    
    // Next finds the next occurrence of key after index x, which must have been
    // obtained from a call to Index using the same key. It returns x+1 or -1.
    func (s Index) Next(key []byte, x int) int {
    	if x++; x*4 < len(s) && cmp(s[x*4:x*4+len(key)], key) == 0 {
    		return x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/mod_tidy_compat_ambiguous.txt

    [exec:patch] go mod tidy -e -diff
    [exec:patch] ! stdout .
    [exec:patch] cmp go.mod go.mod.tidyResult
    [exec:patch] cmp go.sum go.sum.tidyResult
    
    go list -m all
    cmp stdout all-m.txt
    
    go list -f $MODFMT example.net/ambiguous/nested/pkg
    stdout '^example.net/ambiguous/nested v0\.1\.0$'
    ! stderr .
    
    go mod edit -go=1.16
    go list -m all
    cmp stdout all-m.txt
    
    ! go list -f $MODFMT example.net/ambiguous/nested/pkg
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. src/internal/runtime/atomic/sys_nonlinux_arm.s

    	MOVW	addr+0(FP), R0
    	MOVW	(R0), R1
    
    	MOVB	runtime·goarm(SB), R11
    	CMP	$7, R11
    	BLT	2(PC)
    	DMB	MB_ISH
    
    	MOVW	R1, ret+4(FP)
    	RET
    
    TEXT	·Store(SB),NOSPLIT,$0-8
    	MOVW	addr+0(FP), R1
    	MOVW	v+4(FP), R2
    
    	MOVB	runtime·goarm(SB), R8
    	CMP	$7, R8
    	BLT	2(PC)
    	DMB	MB_ISH
    
    	MOVW	R2, (R1)
    
    	CMP	$7, R8
    	BLT	2(PC)
    	DMB	MB_ISH
    	RET
    
    TEXT	·Load8(SB),NOSPLIT|NOFRAME,$0-5
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/ztunnel/configdump/policies.go

    	w := c.tabwriter()
    	zDump := c.ztunnelDump
    
    	pols := slices.Filter(zDump.Policies, filter.Verify)
    	slices.SortFunc(pols, func(a, b *ZtunnelPolicy) int {
    		if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 {
    			return r
    		}
    		return cmp.Compare(a.Name, b.Name)
    	})
    	fmt.Fprintln(w, "NAMESPACE\tPOLICY NAME\tACTION\tSCOPE")
    
    	for _, pol := range pols {
    		fmt.Fprintf(w, "%v\t%v\t%v\t%v\n",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:11 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.s

    	MOVD 16(R3), R10 // h2
    	MOVD 24(R3), R11 // r0
    	MOVD 32(R3), R12 // r1
    
    	CMP R5, $16
    	BLT bytes_between_0_and_15
    
    loop:
    	POLY1305_ADD(R4, R8, R9, R10, R20, R21, R22)
    
    	PCALIGN $16
    multiply:
    	POLY1305_MUL(R8, R9, R10, R11, R12, R16, R17, R18, R14, R20, R21)
    	ADD $-16, R5
    	CMP R5, $16
    	BGE loop
    
    bytes_between_0_and_15:
    	CMP  R5, $0
    	BEQ  done
    	MOVD $0, R16 // h0
    	MOVD $0, R17 // h1
    
    flush_buffer:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/mod_tidy_compat.txt

    go list -m all
    cmp stdout m_all.txt
    
    go mod edit -go=1.16
    go list -m all
    cmp stdout m_all.txt
    
    
    # If we explicitly drop compatibility with 1.16, we retain fewer checksums,
    # which gives a cleaner go.sum file but causes 1.16 to fail in readonly mode.
    
    cp go.mod.orig go.mod
    go mod tidy -compat=1.17
    cmp go.mod go.mod.orig
    
    # Make sure that -diff behaves the same as tidy.
    [exec:patch] mv go.mod go.mod.tidyResult
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/ztunnel/configdump/services.go

    	zDump := c.ztunnelDump
    
    	svcs := slices.Filter(zDump.Services, filter.Verify)
    	slices.SortFunc(svcs, func(a, b *ZtunnelService) int {
    		if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 {
    			return r
    		}
    		if r := cmp.Compare(a.Name, b.Name); r != 0 {
    			return r
    		}
    		return cmp.Compare(a.Hostname, b.Hostname)
    	})
    	fmt.Fprintln(w, "NAMESPACE\tSERVICE NAME\tSERVICE VIP\tWAYPOINT")
    
    	for _, svc := range svcs {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:11 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top