Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for memequal32 (0.19 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top