std/jpeg: call slice.bulk_{load,save}_host_endian

Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=59540

name                                             old speed     new speed     delta

wuffs_jpeg_decode_30k_24bpp_progressive/clang11  131MB/s ± 0%  168MB/s ± 0%  +28.44%  (p=0.008 n=5+5)
wuffs_jpeg_decode_30k_24bpp_progressive/gcc10    167MB/s ± 0%  175MB/s ± 0%   +4.80%  (p=0.008 n=5+5)
This commit is contained in:
Nigel Tao committed 2023-06-05 12:51:50 +10:00
1 parent 4a164cda64
commit 2865c5bfbd
7 files changed
+162 -154

No files matched your search

+3 -1
View File
@@ -965,10 +965,12 @@ var SliceFuncs = []string{
"GENERIC T1.uintptr_low_12_bits() u32[..= 4095]",
"GENERIC T1.suffix(up_to: u64) T1",
// The bulk_etc methods are further restricted to those slices whose
// The bulk_etc methods are further restricted to those T1 slices whose
// elements are bulk-numeric types: numerics (e.g. base.u32), arrays of
// numerics, arrays of arrays of numerics, etc.
"GENERIC T1.bulk_load_host_endian!(src: slice u8)",
"GENERIC T1.bulk_memset!(byte_value: u8)",
"GENERIC T1.bulk_save_host_endian!(dst: slice u8)",
}
var SliceU8Funcs = []string{