Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 315 for tophash (0.12 sec)

  1. src/runtime/map_faststr.go

    	top := tophash(hash)
    
    	var insertb *bmap
    	var inserti uintptr
    	var insertk unsafe.Pointer
    
    bucketloop:
    	for {
    		for i := uintptr(0); i < abi.MapBucketCount; i++ {
    			if b.tophash[i] != top {
    				if isEmpty(b.tophash[i]) && insertb == nil {
    					insertb = b
    					inserti = i
    				}
    				if b.tophash[i] == emptyRest {
    					break bucketloop
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. src/runtime/map_fast64.go

    			} else {
    				memclrNoHeapPointers(e, t.Elem.Size_)
    			}
    			b.tophash[i] = emptyOne
    			// If the bucket now ends in a bunch of emptyOne states,
    			// change those to emptyRest states.
    			if i == abi.MapBucketCount-1 {
    				if b.overflow(t) != nil && b.overflow(t).tophash[0] != emptyRest {
    					goto notLast
    				}
    			} else {
    				if b.tophash[i+1] != emptyRest {
    					goto notLast
    				}
    			}
    			for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. src/runtime/map_fast32.go

    			} else {
    				memclrNoHeapPointers(e, t.Elem.Size_)
    			}
    			b.tophash[i] = emptyOne
    			// If the bucket now ends in a bunch of emptyOne states,
    			// change those to emptyRest states.
    			if i == abi.MapBucketCount-1 {
    				if b.overflow(t) != nil && b.overflow(t).tophash[0] != emptyRest {
    					goto notLast
    				}
    			} else {
    				if b.tophash[i+1] != emptyRest {
    					goto notLast
    				}
    			}
    			for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. src/runtime/map.go

    				// bit of tophash to decide which way NaNs go.
    				// NOTE: this case is why we need two evacuate tophash
    				// values, evacuatedX and evacuatedY, that differ in
    				// their low bit.
    				if checkBucket>>(it.B-1) != uintptr(b.tophash[offi]&1) {
    					continue
    				}
    			}
    		}
    		if (b.tophash[offi] != evacuatedX && b.tophash[offi] != evacuatedY) ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/inl_test.go

    			"pcvalueCacheKey",
    			"rand32",
    			"readUnaligned32",
    			"readUnaligned64",
    			"releasem",
    			"roundupsize",
    			"stackmapdata",
    			"stringStructOf",
    			"subtract1",
    			"subtractb",
    			"tophash",
    			"(*bmap).keys",
    			"(*bmap).overflow",
    			"(*waitq).enqueue",
    			"funcInfo.entry",
    
    			// GC-related ones
    			"cgoInRange",
    			"gclinkptr.ptr",
    			"guintptr.ptr",
    			"heapBitsSlice",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. src/runtime/export_test.go

    			for i := 0; i < abi.MapBucketCount; i++ {
    				if b.tophash[i] != emptyRest {
    					n++
    				}
    			}
    		}
    		k := 0
    		for b := b0; b != nil; b = b.overflow(t) {
    			for i := 0; i < abi.MapBucketCount; i++ {
    				if k < n && b.tophash[i] == emptyRest {
    					panic("early emptyRest")
    				}
    				if k >= n && b.tophash[i] != emptyRest {
    					panic("late non-emptyRest")
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  7. src/runtime/runtime-gdb.py

    					if bucket >= 2 ** (B - 1):
    						continue    # already did old bucket
    					bp = oldbp
    			while bp:
    				b = bp.dereference()
    				for i in xrange(MapBucketCount):
    					if b['tophash'][i] != 0:
    						k = b['keys'][i]
    						v = b['values'][i]
    						if flags & 1:
    							k = k.dereference()
    						if flags & 2:
    							v = v.dereference()
    						yield str(cnt), k
    						yield str(cnt + 1), v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  8. src/hash/maphash/maphash.go

    // Copyright 2019 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.
    
    // Package maphash provides hash functions on byte sequences.
    // These hash functions are intended to be used to implement hash tables or
    // other data structures that need to map arbitrary strings or byte
    // sequences to a uniform distribution on unsigned 64-bit integers.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 19:15:34 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/SipHashFunctionTest.java

          for (int j = 0; j < i; ++j) {
            msg[j] = (byte) j;
          }
          assertSip(msg, EXPECTED[i]);
        }
      }
    
      // This test data comes from "SipHash: a fast short-input PRF", "Appendix A: Test values".
      // It can be downloaded here: https://131002.net/siphash/siphash.pdf
      public void test15ByteStringFromSipHashPaper() {
        byte[] message =
            new byte[] {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun May 05 18:02:35 UTC 2019
    - 6.6K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/objfile.go

    	w.tmpHash64 = contentHash64(s)
    	w.Bytes(w.tmpHash64[:])
    }
    
    func (w *writer) Hash(s *LSym) {
    	if !s.ContentAddressable() {
    		panic("Hash of non-content-addressable symbol")
    	}
    	w.tmpHash = w.contentHash(s)
    	w.Bytes(w.tmpHash[:])
    }
    
    // contentHashSection returns a mnemonic for s's section.
    // The goal is to prevent content-addressability from moving symbols between sections.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
Back to top