Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for memequal_varlen (0.19 sec)

  1. src/internal/bytealg/equal_loong64.s

    loop:
    	BNE	R4, R7, test
    	MOVV	$1, R4
    	RET
    test:
    	MOVBU	(R4), R9
    	ADDV	$1, R4
    	MOVBU	(R5), R10
    	ADDV	$1, R5
    	BEQ	R9, R10, loop
    
    	MOVB    R0, R4
    	RET
    eq:
    	MOVV	$1, R4
    	RET
    
    // memequal_varlen(a, b unsafe.Pointer) bool
    TEXT runtime·memequal_varlen<ABIInternal>(SB),NOSPLIT,$40-17
    	BEQ	R4, R5, eq
    	MOVV	8(REGCTXT), R6    // compiler stores size at offset 8 in the closure
    	MOVV	R4, 8(R3)
    	MOVV	R5, 16(R3)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 875 bytes
    - Viewed (0)
  2. src/internal/bytealg/equal_amd64.s

    	// BX = b    (want in DI)
    	// CX = size (want in BX)
    	CMPQ	AX, BX
    	JNE	neq
    	MOVQ	$1, AX	// return 1
    	RET
    neq:
    	MOVQ	AX, SI
    	MOVQ	BX, DI
    	MOVQ	CX, BX
    	JMP	memeqbody<>(SB)
    
    // memequal_varlen(a, b unsafe.Pointer) bool
    TEXT runtime·memequal_varlen<ABIInternal>(SB),NOSPLIT,$0-17
    	// AX = a       (want in SI)
    	// BX = b       (want in DI)
    	// 8(DX) = 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)
  3. src/internal/bytealg/equal_riscv64.s

    #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
    	MOV	8(CTXT), X12    // compiler stores size at offset 8 in the closure
    	// X10 = a_base
    	// X11 = b_base
    	JMP	memequal<>(SB)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. src/internal/bytealg/equal_arm64.s

    	// short path to handle 0-byte case
    	CBZ	R2, equal
    	// short path to handle equal pointers
    	CMP	R0, R1
    	BEQ	equal
    	B	memeqbody<>(SB)
    equal:
    	MOVD	$1, R0
    	RET
    
    // memequal_varlen(a, b unsafe.Pointer) bool
    TEXT runtime·memequal_varlen<ABIInternal>(SB),NOSPLIT,$0-17
    	CMP	R0, R1
    	BEQ	eq
    	MOVD	8(R26), R2    // compiler stores size at offset 8 in the closure
    	CBZ	R2, eq
    	B	memeqbody<>(SB)
    eq:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 16:07:25 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. src/internal/bytealg/equal_ppc64x.s

    #define BEQLR     BC 12, CR0EQ, (LR)
    
    // memequal(a, b unsafe.Pointer, size uintptr) bool
    TEXT runtime·memequal<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-25
    	// R3 = a
    	// R4 = b
    	// R5 = size
    	BR	memeqbody<>(SB)
    
    // memequal_varlen(a, b unsafe.Pointer) bool
    TEXT runtime·memequal_varlen<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-17
    	// R3 = a
    	// R4 = b
    	CMP	R3, R4
    	BEQ	eq
    	MOVD	8(R11), R5    // compiler stores size at offset 8 in the closure
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 16:47:45 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. src/runtime/stubs.go

    	// the compiler will optimize the division.
    	return (n + a - 1) / a
    }
    
    // checkASM reports whether assembly runtime checks have passed.
    func checkASM() bool
    
    func memequal_varlen(a, b unsafe.Pointer) bool
    
    // bool2int returns 0 if x is false or 1 if x is true.
    func bool2int(x bool) int {
    	// Avoid branches. In the SSA compiler, this compiles to
    	// exactly what you would want it to.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 20.2K bytes
    - Viewed (0)
Back to top