mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 08:47:28 +01:00
Tweak std/deflate decode_huffman_fast asserts
wuffs_deflate_decode_1k_full_init/clang9 95.0MB/s ± 0% 92.9MB/s ± 0% -2.25% (p=0.008 n=5+5) wuffs_deflate_decode_1k_part_init/clang9 108MB/s ± 0% 108MB/s ± 0% +0.34% (p=0.008 n=5+5) wuffs_deflate_decode_10k_full_init/clang9 141MB/s ± 0% 165MB/s ± 1% +16.77% (p=0.008 n=5+5) wuffs_deflate_decode_10k_part_init/clang9 143MB/s ± 0% 169MB/s ± 0% +17.73% (p=0.008 n=5+5) wuffs_deflate_decode_100k_just_one_read/clang9 185MB/s ± 0% 181MB/s ± 0% -2.09% (p=0.008 n=5+5) wuffs_deflate_decode_100k_many_big_reads/clang9 156MB/s ± 1% 151MB/s ± 0% -3.12% (p=0.008 n=5+5) wuffs_deflate_decode_1k_full_init/gcc10 98.6MB/s ± 0% 97.5MB/s ± 0% -1.05% (p=0.016 n=4+5) wuffs_deflate_decode_1k_part_init/gcc10 112MB/s ± 0% 111MB/s ± 0% -1.05% (p=0.008 n=5+5) wuffs_deflate_decode_10k_full_init/gcc10 183MB/s ± 0% 181MB/s ± 1% -0.73% (p=0.008 n=5+5) wuffs_deflate_decode_10k_part_init/gcc10 186MB/s ± 0% 185MB/s ± 0% -0.80% (p=0.008 n=5+5) wuffs_deflate_decode_100k_just_one_read/gcc10 213MB/s ± 0% 216MB/s ± 0% +1.55% (p=0.008 n=5+5) wuffs_deflate_decode_100k_many_big_reads/gcc10 174MB/s ± 0% 179MB/s ± 0% +2.79% (p=0.008 n=5+5)
This commit is contained in:
1 parent
dc60821826
commit
4848859f97
3 files changed
+18
-15
No files matched your search
@@ -23030,10 +23030,11 @@ wuffs_deflate__decoder__decode_huffman_fast(
|
||||
if (v_length == 0) {
|
||||
goto label__loop__continue;
|
||||
}
|
||||
if (((uint64_t)((v_dist_minus_1 + 1))) > ((uint64_t)(iop_a_dst - io0_a_dst))) {
|
||||
if ((((uint64_t)((v_dist_minus_1 + 1))) > ((uint64_t)(iop_a_dst - io0_a_dst))) || (((uint64_t)(v_length)) > ((uint64_t)(io2_a_dst - iop_a_dst)))) {
|
||||
status = wuffs_base__make_status(wuffs_deflate__error__internal_error_inconsistent_distance);
|
||||
goto exit;
|
||||
}
|
||||
} else {
|
||||
}
|
||||
wuffs_base__io_writer__limited_copy_u32_from_history_fast(
|
||||
&iop_a_dst, io0_a_dst, io2_a_dst, v_length, (v_dist_minus_1 + 1));
|
||||
|
||||
Reference in new issue
Block a user