std/crc64: re-write x86_sse42 implementation

name                           old speed      new speed       delta

wuffs_crc64_ecma_10k/clang14   5.84GB/s ± 0%  23.43GB/s ± 0%  +301.23%  (p=0.008 n=5+5)
wuffs_crc64_ecma_100k/clang14  6.18GB/s ± 0%  30.23GB/s ± 1%  +389.45%  (p=0.008 n=5+5)

wuffs_crc64_ecma_10k/gcc12     5.87GB/s ± 1%  24.02GB/s ± 0%  +309.21%  (p=0.008 n=5+5)
wuffs_crc64_ecma_100k/gcc12    6.21GB/s ± 0%  30.68GB/s ± 0%  +394.22%  (p=0.008 n=5+5)

$ time example-mzcat < linux-6.8.2.tar.xz > /dev/null
Before: user 0m7.604s
After:  user 0m7.432s
This commit is contained in:
Nigel Tao committed 2024-04-22 14:05:16 +10:00
1 parent e1f803324b
commit e541e0cf79
5 files changed
+343 -189

No files matched your search

@@ -105,10 +105,14 @@ func calcMu(name string) {
}
func main() {
show("Px'", px)
calcKn("k1'", 512+64)
calcKn("k2'", 512)
calcKn("k3'", 128+64)
calcKn("k4'", 128)
calcKn("fold1a'", 128+64)
calcKn("fold1b'", 128)
calcKn("fold2a'", 256+64)
calcKn("fold2b'", 256)
calcKn("fold4a'", 512+64)
calcKn("fold4b'", 512)
calcKn("fold8a'", 1024+64)
calcKn("fold8b'", 1024)
calcMu("μ' ")
show("Px'", px)
}