Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for archAvailableIEEE (0.17 sec)

  1. src/hash/crc32/crc32.go

    // The interface that they implement is as follows:
    //
    //    // archAvailableIEEE reports whether an architecture-specific CRC32-IEEE
    //    // algorithm is available.
    //    archAvailableIEEE() bool
    //
    //    // archInitIEEE initializes the architecture-specific CRC3-IEEE algorithm.
    //    // It can only be called if archAvailableIEEE() returns true.
    //    archInitIEEE()
    //
    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

    		crc = vectorCrc32(crc, crcCast, p[:aligned])
    		p = p[aligned:]
    	}
    	if len(p) == 0 {
    		return crc
    	}
    	return ppc64SlicingUpdateBy8(crc, archCastagnoliTable8, p)
    }
    
    func archAvailableIEEE() bool {
    	return true
    }
    func archAvailableCastagnoli() bool {
    	return true
    }
    
    var archIeeeTable8 *slicing8Table
    
    func archInitIEEE() {
    	// We still use slicing-by-8 for small buffers.
    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

    		t2 := slicingMakeTable(poly)
    		f2 := func(crc uint32, b []byte) uint32 {
    			return slicingUpdate(crc, t2, b)
    		}
    		testCrossCheck(t, f1, f2)
    	}
    }
    
    func TestArchIEEE(t *testing.T) {
    	if !archAvailableIEEE() {
    		t.Skip("Arch-specific IEEE not available.")
    	}
    	archInitIEEE()
    	slicingTable := slicingMakeTable(IEEE)
    	testCrossCheck(t, archUpdateIEEE, func(crc uint32, b []byte) uint32 {
    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