SIMD-optimize some pixel swizzler loops

wuffs_pixel_swizzler_bgra_non_premul_rgba_nonpremul_src/clang9   1.75GB/s ± 0%  13.10GB/s ± 0%  +650.08%  (p=0.008 n=5+5)
wuffs_pixel_swizzler_bgra_premul_rgb_src/clang9                  1.85GB/s ± 0%  12.24GB/s ± 0%  +563.16%  (p=0.008 n=5+5)

wuffs_pixel_swizzler_bgra_non_premul_rgba_nonpremul_src/gcc10    7.41GB/s ± 0%  11.90GB/s ± 0%   +60.73%  (p=0.008 n=5+5)
wuffs_pixel_swizzler_bgra_premul_rgb_src/gcc10                   1.85GB/s ± 0%  10.66GB/s ± 0%  +474.51%  (p=0.016 n=5+4)
This commit is contained in:
Nigel Tao committed 2021-01-13 21:36:14 +11:00
1 parent 79b39e14bf
commit dd75b6e545
4 files changed
+249 -13

No files matched your search

+1 -1
View File
@@ -105,7 +105,7 @@ const char* //
test_wuffs_pixel_swizzler_swizzle() {
CHECK_FOCUS(__func__);
const uint32_t width = 5;
const uint32_t width = 22;
const uint32_t height = 5;
uint8_t dummy_palette_array[1024];
wuffs_base__pixel_swizzler swizzler;