Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for hcrc (0.04 sec)

  1. 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)
  2. src/hash/crc32/crc32_arm64.go

    package crc32
    
    import "internal/cpu"
    
    func castagnoliUpdate(crc uint32, p []byte) uint32
    func ieeeUpdate(crc uint32, p []byte) uint32
    
    func archAvailableCastagnoli() bool {
    	return cpu.ARM64.HasCRC32
    }
    
    func archInitCastagnoli() {
    	if !cpu.ARM64.HasCRC32 {
    		panic("arch-specific crc32 instruction for Castagnoli not available")
    	}
    }
    
    func archUpdateCastagnoli(crc uint32, p []byte) uint32 {
    	if !cpu.ARM64.HasCRC32 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 25 05:31:01 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  3. src/hash/crc32/crc32_arm64.s

    // license that can be found in the LICENSE file.
    
    #include "textflag.h"
    
    // castagnoliUpdate updates the non-inverted crc with the given data.
    
    // func castagnoliUpdate(crc uint32, p []byte) uint32
    TEXT ·castagnoliUpdate(SB),NOSPLIT,$0-36
    	MOVWU	crc+0(FP), R9  // CRC value
    	MOVD	p+8(FP), R13  // data pointer
    	MOVD	p_len+16(FP), R11  // len(p)
    
    update:
    	CMP	$16, R11
    	BLT	less_than_16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 10 08:57:33 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

      }
    
      private static int referenceCrc(byte[] bytes) {
        int crc = ~0;
        for (byte b : bytes) {
          crc = (crc >>> 8) ^ Crc32cHashFunction.Crc32cHasher.BYTE_TABLE[(crc ^ b) & 0xFF];
        }
        return ~crc;
      }
    
      /**
       * Verifies that the crc of an array of byte data matches the expected value.
       *
       * @param expectedCrc the expected crc value.
       * @param data the data to run the checksum on.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 23 18:30:33 UTC 2020
    - 6.5K bytes
    - Viewed (0)
  5. 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)
  6. src/hash/crc32/crc32_amd64.s

    // license that can be found in the LICENSE file.
    
    #include "textflag.h"
    
    // castagnoliSSE42 updates the (non-inverted) crc with the given buffer.
    //
    // func castagnoliSSE42(crc uint32, p []byte) uint32
    TEXT ·castagnoliSSE42(SB),NOSPLIT,$0
    	MOVL crc+0(FP), AX  // CRC value
    	MOVQ p+8(FP), SI  // data pointer
    	MOVQ p_len+16(FP), CX  // len(p)
    
    	// If there are fewer than 8 bytes to process, skip alignment.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 01 21:52:00 UTC 2018
    - 5.4K 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. src/hash/crc32/crc32_otherarch.go

    func archInitIEEE()                              { panic("not available") }
    func archUpdateIEEE(crc uint32, p []byte) uint32 { panic("not available") }
    
    func archAvailableCastagnoli() bool                    { return false }
    func archInitCastagnoli()                              { panic("not available") }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 681 bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Crc32cHashFunction.java

        /*
         * The striding algorithm works roughly as follows: it is universally the case that
         * CRC(x ^ y) == CRC(x) ^ CRC(y).  The approach we take is to break the message as follows,
         * with each letter representing a 4-byte word: ABCDABCDABCDABCD... and to calculate
         * CRC(A000A000A000...), CRC(0B000B000B...), CRC(00C000C000C...), CRC(000D000D000D...)
         * and then to XOR them together.  The STRIDE_TABLE enables us to hash an int followed by 12
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 21.3K bytes
    - Viewed (0)
  10. src/cmd/go/internal/vcweb/vcweb.go

    	name = Go Gopher
    	email = ******@****.***
    [init]
    	defaultBranch = main
    [core]
    	eol = lf
    [gui]
    	encoding = utf-8
    `[1:]
    
    // hgrc contains a ~/.hgrc file that attempts to provide
    // deterministic, platform-agnostic behavior for the 'hg' command.
    var hgrc = `
    [ui]
    username=Go Gopher <******@****.***>
    [phases]
    new-commit=public
    [extensions]
    convert=
    `[1:]
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 12.1K bytes
    - Viewed (0)
Back to top