Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for archInitCastagnoli (0.38 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_otherarch.go

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

    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)
  4. src/hash/crc32/crc32_s390x.go

    //
    //go:noescape
    func vectorizedIEEE(crc uint32, p []byte) uint32
    
    func archAvailableCastagnoli() bool {
    	return hasVX
    }
    
    var archCastagnoliTable8 *slicing8Table
    
    func archInitCastagnoli() {
    	if !hasVX {
    		panic("not available")
    	}
    	// We still use slicing-by-8 for small buffers.
    	archCastagnoliTable8 = slicingMakeTable(Castagnoli)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  5. 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)
  6. src/hash/crc32/crc32_amd64.go

    type sse42Table [4]Table
    
    var castagnoliSSE42TableK1 *sse42Table
    var castagnoliSSE42TableK2 *sse42Table
    
    func archAvailableCastagnoli() bool {
    	return cpu.X86.HasSSE42
    }
    
    func archInitCastagnoli() {
    	if !cpu.X86.HasSSE42 {
    		panic("arch-specific Castagnoli not available")
    	}
    	castagnoliSSE42TableK1 = new(sse42Table)
    	castagnoliSSE42TableK2 = new(sse42Table)
    	// See description in updateCastagnoli.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  7. 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