Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for hcrc (0.04 sec)

  1. src/hash/crc32/crc32_generic.go

    		for len(p) > 8 {
    			crc ^= byteorder.LeUint32(p)
    			crc = tab[0][p[7]] ^ tab[1][p[6]] ^ tab[2][p[5]] ^ tab[3][p[4]] ^
    				tab[4][crc>>24] ^ tab[5][(crc>>16)&0xFF] ^
    				tab[6][(crc>>8)&0xFF] ^ tab[7][crc&0xFF]
    			p = p[8:]
    		}
    		crc = ^crc
    	}
    	if len(p) == 0 {
    		return crc
    	}
    	return simpleUpdate(crc, &tab[0], p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. src/hash/crc64/crc64.go

    		}
    		// Update using slicing-by-8
    		for len(p) > 8 {
    			crc ^= byteorder.LeUint64(p)
    			crc = helperTable[7][crc&0xff] ^
    				helperTable[6][(crc>>8)&0xff] ^
    				helperTable[5][(crc>>16)&0xff] ^
    				helperTable[4][(crc>>24)&0xff] ^
    				helperTable[3][(crc>>32)&0xff] ^
    				helperTable[2][(crc>>40)&0xff] ^
    				helperTable[1][(crc>>48)&0xff] ^
    				helperTable[0][crc>>56]
    			p = p[8:]
    		}
    	}
    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/crc32/crc32_ppc64le.s

    	MOVWZ	(R10)(R8),R25	// tab[4][crc>>24]
    	RLDICL	$48,R7,$56,R24	// crc>>16&0xFF
    	XOR	R21,R25,R21	// xor done R25
    	ADD	$1024,R10,R10	// &tab[5]
    	SLD	$2,R24,R24	// crc>>16&0xFF*4
    	MOVWZ	(R10)(R24),R26	// tab[5][crc>>16&0xFF]
    	XOR	R21,R26,R21	// xor done R26
    	RLDICL	$56,R7,$56,R25	// crc>>8
    	ADD	$1024,R10,R10	// &tab[6]
    	SLD	$2,R25,R25	// crc>>8&FF*2
    	MOVBZ   R7,R26          // crc&0xFF
    	MOVWZ	(R10)(R25),R27	// tab[6][crc>>8&0xFF]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 12:09:50 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. src/hash/crc32/crc32_test.go

    	{0x4b8e39ef, 0x53bceff1, "abcdef", "crc\x01ʇ\x91M5$A\xc2", "crc\x01wB\x84\x816K?\xb7"},
    	{0x312a6aa6, 0xe627f441, "abcdefg", "crc\x01ʇ\x91M5$A\xc2", "crc\x01wB\x84\x816K?\xb7"},
    	{0xaeef2a50, 0xa9421b7, "abcdefgh", "crc\x01ʇ\x91M\xed\x82\xcd\x11", "crc\x01wB\x84\x81\x92\xc8\n1"},
    	{0x8da988af, 0x2ddc99fc, "abcdefghi", "crc\x01ʇ\x91M\xed\x82\xcd\x11", "crc\x01wB\x84\x81\x92\xc8\n1"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. src/hash/crc32/crc32.go

    	}
    	d.crc = byteorder.BeUint32(b[8:])
    	return nil
    }
    
    func update(crc uint32, tab *Table, p []byte, checkInitIEEE bool) uint32 {
    	switch {
    	case haveCastagnoli.Load() && tab == castagnoliTable:
    		return updateCastagnoli(crc, p)
    	case tab == IEEETable:
    		if checkInitIEEE {
    			ieeeOnce.Do(ieeeInit)
    		}
    		return updateIEEE(crc, p)
    	default:
    		return simpleUpdate(crc, tab, p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-utils.go

    	// Seed (random)
    	crc := uint64(0xc2b40bbac11a7295)
    	// Xor each value to make order independent
    	for k, v := range m {
    		// Separate key and value with an individual xor with a random number.
    		// Add values of each, so they cannot be trivially collided.
    		crc ^= (xxh3.HashString(k) ^ 0x4ee3bbaf7ab2506b) + (xxh3.HashString(v) ^ 0x8da4c8da66194257)
    	}
    	return crc
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 22:18:44 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. src/compress/bzip2/bzip2.go

    	for i := range crctab {
    		crc := uint32(i) << 24
    		for j := 0; j < 8; j++ {
    			if crc&0x80000000 != 0 {
    				crc = (crc << 1) ^ poly
    			} else {
    				crc <<= 1
    			}
    		}
    		crctab[i] = crc
    	}
    }
    
    // updateCRC updates the crc value to incorporate the data in b.
    // The initial value is 0.
    func updateCRC(val uint32, b []byte) uint32 {
    	crc := ^val
    	for _, v := range b {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 13K bytes
    - Viewed (0)
  8. 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.
    const (
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v2.go

    			}
    			if minor >= 2 {
    				if crc, nbuf, err := msgp.ReadUint32Bytes(buf); err == nil {
    					// Read metadata CRC (added in v2)
    					buf = nbuf
    					if got := uint32(xxhash.Sum64(v)); got != crc {
    						return fmt.Errorf("xlMetaV2.Load version(%d), CRC mismatch, want 0x%x, got 0x%x", minor, crc, got)
    					}
    				} else {
    					return fmt.Errorf("xlMetaV2.Load version(%d), loading CRC: %w", minor, err)
    				}
    			}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  10. src/image/png/writer.go

    		return
    	}
    	binary.BigEndian.PutUint32(e.header[:4], n)
    	e.header[4] = name[0]
    	e.header[5] = name[1]
    	e.header[6] = name[2]
    	e.header[7] = name[3]
    	crc := crc32.NewIEEE()
    	crc.Write(e.header[4:8])
    	crc.Write(b)
    	binary.BigEndian.PutUint32(e.footer[:4], crc.Sum32())
    
    	_, e.err = e.w.Write(e.header[:8])
    	if e.err != nil {
    		return
    	}
    	_, e.err = e.w.Write(b)
    	if e.err != nil {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top