Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for memequal (0.11 sec)

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

    			}
    		}
    	})
    
    	sizes := []int{1, 6, 9, 15, 16, 20, 32, 4 << 10, 4 << 20, 64 << 20}
    
    	b.Run("same", func(b *testing.B) {
    		benchBytes(b, sizes, bmEqual(func(a, b []byte) bool { return Equal(a, a) }))
    	})
    
    	benchBytes(b, sizes, bmEqual(Equal))
    }
    
    func bmEqual(equal func([]byte, []byte) bool) func(b *testing.B, n int) {
    	return func(b *testing.B, n int) {
    		if len(bmbuf) < 2*n {
    			bmbuf = make([]byte, 2*n)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  4. src/reflect/type.go

    	}
    
    	etyp := typ
    	esize := etyp.Size()
    
    	array.Equal = nil
    	if eequal := etyp.Equal; eequal != nil {
    		array.Equal = func(p, q unsafe.Pointer) bool {
    			for i := 0; i < length; i++ {
    				pi := arrayAt(p, i, esize, "i < length")
    				qi := arrayAt(q, i, esize, "i < length")
    				if !eequal(pi, qi) {
    					return false
    				}
    
    			}
    			return true
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
Back to top