Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for memequal (0.23 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_native.go

    // implemented in assembly in this package but declared in another
    // package.
    
    // The compiler generates calls to runtime.memequal and runtime.memequal_varlen.
    // In addition, the runtime calls runtime.memequal explicitly.
    // Those functions are implemented in this package.
    
    //go:linkname abigen_runtime_memequal runtime.memequal
    func abigen_runtime_memequal(a, b unsafe.Pointer, size uintptr) bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 24 00:56:36 UTC 2019
    - 789 bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/internal/bytealg/equal_mipsx.s

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build mips || mipsle
    
    #include "go_asm.h"
    #include "textflag.h"
    
    #define	REGCTXT	R22
    
    // memequal(a, b unsafe.Pointer, size uintptr) bool
    TEXT runtime·memequal(SB),NOSPLIT,$0-13
    	MOVW	a+0(FP), R1
    	MOVW	b+4(FP), R2
    	BEQ	R1, R2, eq
    	MOVW	size+8(FP), R3
    	ADDU	R1, R3, R4
    loop:
    	BNE	R1, R4, test
    	MOVW	$1, R1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  8. src/internal/bytealg/equal_386.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(SB),NOSPLIT,$0-13
    	MOVL	a+0(FP), SI
    	MOVL	b+4(FP), DI
    	CMPL	SI, DI
    	JEQ	eq
    	MOVL	size+8(FP), BX
    	LEAL	ret+12(FP), AX
    	JMP	memeqbody<>(SB)
    eq:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 23 21:22:58 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  9. src/internal/bytealg/equal_wasm.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(p, q unsafe.Pointer, size uintptr) bool
    TEXT runtime·memequal(SB), NOSPLIT, $0-25
    	Get SP
    	I64Load a+0(FP)
    	I64Load b+8(FP)
    	I64Load size+16(FP)
    	Call memeqbody<>(SB)
    	I64Store8 ret+24(FP)
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 24 00:56:36 UTC 2019
    - 1.1K bytes
    - Viewed (0)
  10. 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)
Back to top