Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for memequal (0.12 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/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)
  3. 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)
  4. src/cmd/compile/internal/walk/compare.go

    		// quick check of len before full compare for == or !=.
    		// memequal then tests equality up to length len.
    		if n.Op() == ir.OEQ {
    			// len(left) == len(right) && memequal(left, right, len)
    			r = ir.NewLogicalExpr(base.Pos, ir.OANDAND, eqlen, eqmem)
    		} else {
    			// len(left) != len(right) || !memequal(left, right, len)
    			eqlen.SetOp(ir.ONE)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:55:14 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/compile/internal/typecheck/builtin.go

    	{"memmove", funcTag, 123},
    	{"memclrNoHeapPointers", funcTag, 124},
    	{"memclrHasPointers", funcTag, 124},
    	{"memequal", funcTag, 125},
    	{"memequal0", funcTag, 126},
    	{"memequal8", funcTag, 126},
    	{"memequal16", funcTag, 126},
    	{"memequal32", funcTag, 126},
    	{"memequal64", funcTag, 126},
    	{"memequal128", funcTag, 126},
    	{"f32equal", funcTag, 127},
    	{"f64equal", funcTag, 127},
    	{"c64equal", funcTag, 127},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  7. src/runtime/alg.go

    	return typehash(t, p, h)
    }
    
    func memequal0(p, q unsafe.Pointer) bool {
    	return true
    }
    func memequal8(p, q unsafe.Pointer) bool {
    	return *(*int8)(p) == *(*int8)(q)
    }
    func memequal16(p, q unsafe.Pointer) bool {
    	return *(*int16)(p) == *(*int16)(q)
    }
    func memequal32(p, q unsafe.Pointer) bool {
    	return *(*int32)(p) == *(*int32)(q)
    }
    func memequal64(p, q unsafe.Pointer) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  8. src/internal/concurrent/hashtriemap.go

    	if keyEqual(unsafe.Pointer(&head.key), abi.NoEscape(unsafe.Pointer(&key))) &&
    		valEqual(unsafe.Pointer(&head.value), abi.NoEscape(unsafe.Pointer(&value))) {
    		// Drop the head of the list.
    		return head.overflow.Load(), true
    	}
    	i := &head.overflow
    	e := i.Load()
    	for e != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2/conversion_test.go

    				} else if equal && test.expectDiff {
    					t.Errorf("expected diff, but didn't get any")
    				}
    			}
    		})
    	}
    }
    
    func withVendorExtensions(s *spec.Schema, key string, value interface{}) *spec.Schema {
    	s.VendorExtensible.AddExtension(key, value)
    	return s
    }
    
    func refEqual(x spec.Ref, y spec.Ref) bool {
    	return x.String() == y.String()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 14:34:26 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/poset.go

    		panic("should not call SetOrder with n1==n2")
    	}
    	return po.setOrder(n1, n2, false)
    }
    
    // SetEqual records that n1==n2. Returns false if this is a contradiction
    // (that is, if it is already recorded that n1<n2 or n2<n1).
    // Complexity is O(1) if n2 was never seen before, or O(n) otherwise.
    func (po *poset) SetEqual(n1, n2 *Value) bool {
    	if debugPoset {
    		defer po.CheckIntegrity()
    	}
    	if n1.ID == n2.ID {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 17:23:05 UTC 2023
    - 37.2K bytes
    - Viewed (0)
Back to top