Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for tableSum (0.09 sec)

  1. src/hash/crc64/crc64.go

    }
    
    // Checksum returns the CRC-64 checksum of data
    // using the polynomial represented by the [Table].
    func Checksum(data []byte, tab *Table) uint64 { return update(0, tab, data) }
    
    // tableSum returns the ISO checksum of table t.
    func tableSum(t *Table) uint64 {
    	var a [2048]byte
    	b := a[:0]
    	if t != nil {
    		for _, x := range t {
    			b = byteorder.BeAppendUint64(b, x)
    		}
    	}
    	return Checksum(b, MakeTable(ISO))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. src/hash/crc32/crc32.go

    // ChecksumIEEE returns the CRC-32 checksum of data
    // using the [IEEE] polynomial.
    func ChecksumIEEE(data []byte) uint32 {
    	ieeeOnce.Do(ieeeInit)
    	return updateIEEE(0, data)
    }
    
    // tableSum returns the IEEE checksum of table t.
    func tableSum(t *Table) uint32 {
    	var a [1024]byte
    	b := a[:0]
    	if t != nil {
    		for _, x := range t {
    			b = byteorder.BeAppendUint32(b, x)
    		}
    	}
    	return ChecksumIEEE(b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top