Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for sum64 (0.11 sec)

  1. src/hash/fnv/fnv.go

    func (s *sum32a) Reset()  { *s = offset32 }
    func (s *sum64) Reset()   { *s = offset64 }
    func (s *sum64a) Reset()  { *s = offset64 }
    func (s *sum128) Reset()  { s[0] = offset128Higher; s[1] = offset128Lower }
    func (s *sum128a) Reset() { s[0] = offset128Higher; s[1] = offset128Lower }
    
    func (s *sum32) Sum32() uint32  { return uint32(*s) }
    func (s *sum32a) Sum32() uint32 { return uint32(*s) }
    func (s *sum64) Sum64() uint64  { return uint64(*s) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. src/hash/crc64/crc64.go

    	return update(crc, tab, p)
    }
    
    func (d *digest) Write(p []byte) (n int, err error) {
    	d.crc = update(d.crc, d.tab, p)
    	return len(p), nil
    }
    
    func (d *digest) Sum64() uint64 { return d.crc }
    
    func (d *digest) Sum(in []byte) []byte {
    	s := d.Sum64()
    	return append(in, byte(s>>56), byte(s>>48), byte(s>>40), byte(s>>32), byte(s>>24), byte(s>>16), byte(s>>8), byte(s))
    }
    
    // Checksum returns the CRC-64 checksum of data
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. src/hash/maphash/smhasher_test.go

    				}
    			}
    		}
    	}
    }
    
    func bytesHash(b []byte) uint64 {
    	var h Hash
    	h.SetSeed(fixedSeed)
    	h.Write(b)
    	return h.Sum64()
    }
    func stringHash(s string) uint64 {
    	var h Hash
    	h.SetSeed(fixedSeed)
    	h.WriteString(s)
    	return h.Sum64()
    }
    
    const hashSize = 64
    
    func randBytes(r *rand.Rand, b []byte) {
    	r.Read(b) // can't fail
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/cluster_cache.go

    	for _, sa := range t.serviceAccounts {
    		h.WriteString(sa)
    		h.Write(Separator)
    	}
    	h.Write(Separator)
    
    	if t.endpointBuilder != nil {
    		t.endpointBuilder.WriteHash(h)
    	}
    
    	return h.Sum64()
    }
    
    func (t *clusterCache) DependentConfigs() []model.ConfigHash {
    	drs := t.destinationRule.GetFrom()
    	configs := make([]model.ConfigHash, 0, len(drs)+1+len(t.envoyFilterKeys))
    	if t.destinationRule != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v1.go

    	// Zero unimportant fields
    	c.Erasure.Index = 0
    	c.Minio.Release = ""
    	crc := hashDeterministicString(c.Meta)
    	c.Meta = nil
    
    	if bts, err := c.MarshalMsg(metaDataPoolGet()); err == nil {
    		crc ^= xxhash.Sum64(bts)
    		metaDataPoolPut(bts)
    	}
    
    	// Combine upper and lower part
    	var tmp [4]byte
    	binary.LittleEndian.PutUint32(tmp[:], uint32(crc^(crc>>32)))
    	return tmp
    }
    
    // XL metadata constants.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v2.go

    	// Shallow copy
    	c := *j
    
    	// Marshal metadata
    	crc := hashDeterministicBytes(c.MetaSys)
    	c.MetaSys = nil
    	if bts, err := c.MarshalMsg(metaDataPoolGet()); err == nil {
    		crc ^= xxhash.Sum64(bts)
    		metaDataPoolPut(bts)
    	}
    
    	// Combine upper and lower part
    	var tmp [4]byte
    	binary.LittleEndian.PutUint32(tmp[:], uint32(crc^(crc>>32)))
    	return tmp
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  7. cmd/erasure-sets.go

    		return -1
    	}
    	// use the faster version as per siphash docs
    	// https://github.com/dchest/siphash#usage
    	k0, k1 := binary.LittleEndian.Uint64(id[0:8]), binary.LittleEndian.Uint64(id[8:16])
    	sum64 := siphash.Hash(k0, k1, []byte(key))
    	return int(sum64 % uint64(cardinality))
    }
    
    func crcHashMod(key string, cardinality int) int {
    	if cardinality <= 0 {
    		return -1
    	}
    	keyCrc := crc32.Checksum([]byte(key), crc32.IEEETable)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  8. pilot/pkg/xds/endpoints/endpoint_builder.go

    func (b *EndpointBuilder) Key() any {
    	// nolint: gosec
    	// Not security sensitive code
    	h := hash.New()
    	b.WriteHash(h)
    	return h.Sum64()
    }
    
    func (b *EndpointBuilder) WriteHash(h hash.Hash) {
    	if b == nil {
    		return
    	}
    	h.WriteString(b.clusterName)
    	h.Write(Separator)
    	h.WriteString(string(b.network))
    	h.Write(Separator)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 02:18:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/gateway.go

    		b := make([]byte, size)
    		switch size {
    		case 4:
    			binary.LittleEndian.PutUint32(b, uint32(u))
    		default:
    			binary.LittleEndian.PutUint64(b, uint64(u))
    		}
    		h.Write(b)
    	}
    	return h.Sum64()
    }
    
    // collapseDuplicateRoutes prevents cardinality explosion when we have multiple hostnames defined for the same set of routes
    // with virtual service: {hosts: [a, b], routes: [r1, r2]}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 46.4K bytes
    - Viewed (0)
  10. test/codegen/mathbits.go

    	// s390x:"SUBE"
    	// riscv64: "SUB",-"SLTU"
    	r, _ := bits.Sub64(x, y, ci)
    	return r
    }
    func Sub64M(p, q, r *[3]uint64) {
    	var c uint64
    	r[0], c = bits.Sub64(p[0], q[0], c)
    	// amd64:"SBBQ",-"NEGL",-"NEGQ"
    	// arm64:"SBCS",-"NEGS",-"NGC",-"NEG",-"ADD",-"SUB",-"CMP"
    	// s390x:"SUBE"
    	r[1], c = bits.Sub64(p[1], q[1], c)
    	r[2], c = bits.Sub64(p[2], q[2], c)
    }
    
    func Sub64MSaveC(p, q, r, c *[2]uint64) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:51:17 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top