Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for archInitCastagnoli (0.26 sec)

  1. src/hash/crc32/crc32.go

    //    archAvailableCastagnoli() bool
    //
    //    // archInitCastagnoli initializes the architecture-specific CRC32-C
    //    // algorithm. It can only be called if archAvailableCastagnoli() returns
    //    // true.
    //    archInitCastagnoli()
    //
    //    // archUpdateCastagnoli updates the given CRC32-C. It can only be called
    //    // if archInitCastagnoli() was previously called.
    //    archUpdateCastagnoli(crc uint32, p []byte) uint32
    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_ppc64le.go

    // this function requires the buffer to be 16 byte aligned and > 16 bytes long.
    //
    //go:noescape
    func vectorCrc32(crc uint32, poly uint32, p []byte) uint32
    
    var archCastagnoliTable8 *slicing8Table
    
    func archInitCastagnoli() {
    	archCastagnoliTable8 = slicingMakeTable(Castagnoli)
    }
    
    func archUpdateCastagnoli(crc uint32, p []byte) uint32 {
    	if len(p) >= 4*vecMinLen {
    		// If not aligned then process the initial unaligned bytes
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  3. src/hash/crc32/crc32_test.go

    		return slicingUpdate(crc, slicingTable, b)
    	})
    }
    
    func TestArchCastagnoli(t *testing.T) {
    	if !archAvailableCastagnoli() {
    		t.Skip("Arch-specific Castagnoli not available.")
    	}
    	archInitCastagnoli()
    	slicingTable := slicingMakeTable(Castagnoli)
    	testCrossCheck(t, archUpdateCastagnoli, func(crc uint32, b []byte) uint32 {
    		return slicingUpdate(crc, slicingTable, b)
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top