Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for memequal (0.19 sec)

  1. 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)
  2. 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)
  3. src/runtime/tracemap.go

    			// we must have lost the race, and therefore n is not nil
    			// anymore.
    			n = (*traceMapNode)(m.Load())
    		}
    		if n.hash == hash && uintptr(len(n.data)) == size {
    			if memequal(unsafe.Pointer(&n.data[0]), data, size) {
    				return n.id, false
    			}
    		}
    		m = &n.children[hashIter>>(8*goarch.PtrSize-2)]
    		hashIter <<= 2
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/generic.rules

    (NilCheck ptr:(Convert (Addr {_} (SB)) _) _) => ptr
    
    // for late-expanded calls, recognize memequal applied to a single constant byte
    // Support is limited by 1, 2, 4, 8 byte sizes
    (StaticLECall {callAux} sptr (Addr {scon} (SB)) (Const64 [1]) mem)
      && isSameCall(callAux, "runtime.memequal")
      && symIsRO(scon)
      => (MakeResult (Eq8 (Load <typ.Int8> sptr mem) (Const8 <typ.Int8> [int8(read8(scon,0))])) mem)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/compile/internal/ssa/rewritegeneric.go

    	// cond: isSameCall(callAux, "runtime.memequal") && isSamePtr(p, q)
    	// result: (MakeResult (ConstBool <typ.Bool> [true]) mem)
    	for {
    		if len(v.Args) != 4 {
    			break
    		}
    		callAux := auxToCall(v.Aux)
    		mem := v.Args[3]
    		p := v.Args[0]
    		q := v.Args[1]
    		if !(isSameCall(callAux, "runtime.memequal") && isSamePtr(p, q)) {
    			break
    		}
    		v.reset(OpMakeResult)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.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