Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for memequal (0.13 sec)

  1. test/codegen/comparisons.go

    	// arm64:-".*memequal"
    	// ppc64x:-".*memequal"
    	return a == b
    }
    
    func equalVarString4(a string) bool {
    	b := string("ZZZZ")
    	// amd64:-".*memequal"
    	// arm64:-".*memequal"
    	// ppc64x:-".*memequal"
    	return a[:4] == b
    }
    
    func equalConstString8() bool {
    	a := string("AAAAAAAA")
    	b := string("ZZZZZZZZ")
    	// amd64:-".*memequal"
    	// arm64:-".*memequal"
    	// ppc64x:-".*memequal"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 16:31:02 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  2. src/internal/bytealg/equal_riscv64.s

    // license that can be found in the LICENSE file.
    
    #include "go_asm.h"
    #include "textflag.h"
    
    #define	CTXT	S10
    
    // func memequal(a, b unsafe.Pointer, size uintptr) bool
    TEXT runtime·memequal<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-25
    	// X10 = a_base
    	// X11 = b_base
    	// X12 = size
    	JMP	memequal<>(SB)
    
    // func memequal_varlen(a, b unsafe.Pointer) bool
    TEXT runtime·memequal_varlen<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-17
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. test/codegen/strings.go

    	bsink = []byte("0123456789ab")
    }
    
    // self-equality is always true. See issue 60777.
    func EqualSelf(s string) bool {
    	// amd64:`MOVL\t\$1, AX`,-`.*memequal.*`
    	return s == s
    }
    func NotEqualSelf(s string) bool {
    	// amd64:`XORL\tAX, AX`,-`.*memequal.*`
    	return s != s
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 26 17:17:28 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. src/runtime/map_faststr.go

    				k := (*stringStruct)(kptr)
    				if k.len != key.len || isEmpty(b.tophash[i]) {
    					if b.tophash[i] == emptyRest {
    						break
    					}
    					continue
    				}
    				if k.str == key.str || memequal(k.str, key.str, uintptr(key.len)) {
    					return add(unsafe.Pointer(b), dataOffset+abi.MapBucketCount*2*goarch.PtrSize+i*uintptr(t.ValueSize))
    				}
    			}
    			return unsafe.Pointer(&zeroVal[0])
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  5. src/internal/bytealg/equal_loong64.s

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include "go_asm.h"
    #include "textflag.h"
    
    #define	REGCTXT	R29
    
    // memequal(a, b unsafe.Pointer, size uintptr) bool
    TEXT runtime·memequal<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-25
    	BEQ	R4, R5, eq
    	ADDV	R4, R6, R7
    	PCALIGN	$16
    loop:
    	BNE	R4, R7, test
    	MOVV	$1, R4
    	RET
    test:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 875 bytes
    - Viewed (0)
  6. src/cmd/internal/goobj/builtinlist.go

    	{"runtime.memmove", 1},
    	{"runtime.memclrNoHeapPointers", 1},
    	{"runtime.memclrHasPointers", 1},
    	{"runtime.memequal", 1},
    	{"runtime.memequal0", 1},
    	{"runtime.memequal8", 1},
    	{"runtime.memequal16", 1},
    	{"runtime.memequal32", 1},
    	{"runtime.memequal64", 1},
    	{"runtime.memequal128", 1},
    	{"runtime.f32equal", 1},
    	{"runtime.f64equal", 1},
    	{"runtime.c64equal", 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. src/internal/bytealg/equal_amd64.s

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include "go_asm.h"
    #include "asm_amd64.h"
    #include "textflag.h"
    
    // memequal(a, b unsafe.Pointer, size uintptr) bool
    TEXT runtime·memequal<ABIInternal>(SB),NOSPLIT,$0-25
    	// AX = a    (want in SI)
    	// BX = b    (want in DI)
    	// CX = size (want in BX)
    	CMPQ	AX, BX
    	JNE	neq
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:34:40 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  8. src/internal/bytealg/equal_arm64.s

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include "go_asm.h"
    #include "textflag.h"
    
    // memequal(a, b unsafe.Pointer, size uintptr) bool
    TEXT runtime·memequal<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-25
    	// short path to handle 0-byte case
    	CBZ	R2, equal
    	// short path to handle equal pointers
    	CMP	R0, R1
    	BEQ	equal
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 16:07:25 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. src/runtime/stubs.go

    // in internal/bytealg/equal_*.s
    //
    // memequal should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/bytedance/sonic
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname memequal
    //go:noescape
    func memequal(a, b unsafe.Pointer, size uintptr) bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func memclrNoHeapPointers(ptr unsafe.Pointer, n uintptr)
    func memclrHasPointers(ptr unsafe.Pointer, n uintptr)
    
    func memequal(x, y *any, size uintptr) bool
    func memequal0(x, y *any) bool
    func memequal8(x, y *any) bool
    func memequal16(x, y *any) bool
    func memequal32(x, y *any) bool
    func memequal64(x, y *any) bool
    func memequal128(x, y *any) bool
    func f32equal(p, q unsafe.Pointer) bool
    func f64equal(p, q unsafe.Pointer) bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top