Nigel Tao
6b9f658c59
Add some more compiler warning flags
2019-04-07 16:34:10 +10:00
Nigel Tao
d8b5128c09
Compile cleanly with clang++
2019-04-07 16:16:14 +10:00
Nigel Tao
3c86337cac
Fix some more -Wconversion warnings
2019-04-07 16:04:30 +10:00
Nigel Tao
665355bd8a
Fix some -Wconversion warnings
2019-04-07 14:55:32 +10:00
Nigel Tao
ed52fdecb9
Rework how we avoid clang's -Wunused-function
...
The previous technique to avoid this was to have explicit
(void)(wuffs_foo__bar_baz);
no-op lines of code. However, on MSVC, this triggers warning C4551
"function call missing argument list".
https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4551
says that "A function call must include the open and close parentheses".
But this is not a function call, it is casting the function pointer.
This false positive is a bug in MSVC, but we work around it for Wuffs.
2019-04-07 14:36:09 +10:00
Nigel Tao
0e3d691048
Add rac.Writer code path for empty input
2019-04-07 13:24:42 +10:00
Nigel Tao
7e26fe8086
Rename some "cOffset" variables
2019-04-07 13:00:18 +10:00
Nigel Tao
7be27661b9
Add a rac.Writer.CPageSize field
2019-04-07 12:53:39 +10:00
Nigel Tao
369d854a34
Have rac.Writer check for too much input
2019-04-07 10:54:18 +10:00
Nigel Tao
ad8b1540c3
Add CLen fields to the RAC file format
2019-04-07 10:09:51 +10:00
Nigel Tao
8cefc932c3
Add RAC examples
2019-04-07 10:09:51 +10:00
Nigel Tao
16df03f9dc
Add a lib/rac package
2019-04-07 10:09:50 +10:00
Nigel Tao
b244e4baa0
Add a Go module file (go.mod)
2019-04-07 10:09:50 +10:00
Nigel Tao
f59e16e337
Add a lib/zlibcut package
2019-04-06 10:16:43 +11:00
Nigel Tao
49ab667a4d
Add comment separating the copyright notice
2019-03-16 14:04:14 +11:00
Nigel Tao
02dc564596
Eliminate a branch in std/deflate decoding
...
name old speed new speed delta
wuffs_deflate_decode_1k_full_init/clang5 139MB/s ± 1% 151MB/s ± 1% +9.19% (p=0.000 n=28+30)
wuffs_deflate_decode_1k_part_init/clang5 169MB/s ± 1% 187MB/s ± 1% +11.15% (p=0.000 n=28+28)
wuffs_deflate_decode_10k_full_init/clang5 200MB/s ± 0% 242MB/s ± 1% +20.99% (p=0.000 n=28+28)
wuffs_deflate_decode_10k_part_init/clang5 205MB/s ± 1% 249MB/s ± 1% +21.51% (p=0.000 n=29+29)
wuffs_deflate_decode_100k_just_one_read/clang5 255MB/s ± 1% 280MB/s ± 1% +9.86% (p=0.000 n=29+30)
wuffs_deflate_decode_100k_many_big_reads/clang5 218MB/s ± 0% 241MB/s ± 1% +10.58% (p=0.000 n=27+24)
wuffs_deflate_decode_1k_full_init/gcc7 155MB/s ± 1% 155MB/s ± 2% ~ (p=0.521 n=28+29)
wuffs_deflate_decode_1k_part_init/gcc7 190MB/s ± 1% 191MB/s ± 1% +0.51% (p=0.000 n=27+28)
wuffs_deflate_decode_10k_full_init/gcc7 265MB/s ± 1% 266MB/s ± 1% +0.54% (p=0.000 n=29+30)
wuffs_deflate_decode_10k_part_init/gcc7 272MB/s ± 1% 274MB/s ± 1% +0.73% (p=0.000 n=29+30)
wuffs_deflate_decode_100k_just_one_read/gcc7 317MB/s ± 0% 318MB/s ± 0% +0.58% (p=0.000 n=28+28)
wuffs_deflate_decode_100k_many_big_reads/gcc7 252MB/s ± 1% 253MB/s ± 0% +0.64% (p=0.000 n=29+27)
2019-03-16 14:02:15 +11:00
Nigel Tao
e0936e55be
Update the RAC spec's Related Work section
2019-03-16 09:19:58 +11:00
Nigel Tao
584a36309a
Have RAC CRange's go up to COffMax
2019-03-16 09:16:22 +11:00
Nigel Tao
0e18c1566b
Have that the RAC+Zlib Leaf TTag must be 0xFF
2019-03-16 09:14:47 +11:00
Nigel Tao
ae6e8db4ad
wuffs gen -version=0.2.0-alpha.35
2019-03-09 14:51:46 +11:00
Nigel Tao
5a98f06cab
Add some make_foo and null_foo constructors
2019-03-09 14:50:32 +11:00
Nigel Tao
32dd9fa647
wuffs gen -version=0.2.0-alpha.34
2019-03-09 13:45:32 +11:00
Nigel Tao
6826f2f748
Move internal/cgen up a couple of directories
2019-03-09 13:28:59 +11:00
Nigel Tao
9980a6fef4
Add a Random Access Compression (RAC) spec
2019-03-09 13:23:46 +11:00
Nigel Tao
3680b2a11b
Move NIE spec to a new doc/spec directory
2019-03-09 12:39:40 +11:00
Nigel Tao
a7e2fc86d2
Add commentary about the Adler-32 algorithm
2019-03-09 11:20:30 +11:00
Nigel Tao
489284dfda
Remove the deprecated foo__check_wuffs_version
2019-03-09 11:11:41 +11:00
Nigel Tao
19086f1c11
Have example/library check !WUFFS_IMPLEMENTATION
2019-03-09 11:08:35 +11:00
Nigel Tao
7e384e079e
Take some unistd.h dependencies out of examples
2019-03-09 11:06:26 +11:00
Nigel Tao
c4b8a6a4cc
Don't use designated initializers
...
Some C/C++ compilers, such as MSVC, don't always support them. They're
also not supported by GCC's "g++ -std=c++11 -Wpedantic".
2019-03-09 10:08:00 +11:00
Nigel Tao
ef7aa0d980
Rename "!=" to "<>"; "!" now only shows impurity
2019-03-02 14:51:32 +11:00
Nigel Tao
f8d02cfb16
Change the warning message prefix from "~" to "@"
2019-03-02 14:42:50 +11:00
Nigel Tao
fbd1ae8391
Disable -Wmaybe-uninitialized for GCC
2019-02-24 17:22:14 +11:00
Nigel Tao
ffeb2bff63
Split benchmarks for full / partial initialization
2019-02-24 16:54:19 +11:00
Nigel Tao
2276be64e9
wuffs gen -version=0.2.0-alpha.33
2019-02-24 11:49:54 +11:00
Nigel Tao
d78101625e
Raise hash tests' digits-of-pi data length
2019-02-24 11:44:22 +11:00
Nigel Tao
3c254cb5f5
Rename gif "not enough / too much" data tests
2019-02-24 11:31:37 +11:00
Nigel Tao
917a94b445
Add "gif-pixel-data-none" test
2019-02-24 11:28:11 +11:00
Nigel Tao
dd861416ff
Allow calling pure functions after seeing an error
...
Updates #20
2019-02-24 11:13:51 +11:00
Nigel Tao
5aeb98c701
Restore deflate.decoder.n_huffs_bits's refinement
2019-02-24 09:15:31 +11:00
Nigel Tao
b075fcbed9
Build fix for hand-written decode_huffman_fast
2019-02-24 09:03:36 +11:00
Nigel Tao
931fdce475
Rename "yield foo" to "yield? foo"
2019-02-23 17:15:57 +11:00
Nigel Tao
045f180a6c
Rename errors from "?msg" to "#msg"
2019-02-23 17:06:24 +11:00
Nigel Tao
c341ac5078
Add note about uninitialized internal buffers
2019-02-23 14:35:50 +11:00
Nigel Tao
8b41881ba7
Rename gif's "too much pixel data"
2019-02-23 14:34:06 +11:00
Nigel Tao
d7f434c6e4
Have the GIF decoder check for "not enough data"
...
Fixes #20
2019-02-23 14:29:16 +11:00
Nigel Tao
6974c4d629
Refine the lzw.decoder.prefixes element type
...
name old speed new speed delta
wuffs_gif_decode_1k_bw/clang5 445MB/s ± 1% 413MB/s ± 1% -7.11% (p=0.008 n=5+5)
wuffs_gif_decode_1k_color/clang5 192MB/s ± 0% 185MB/s ± 0% -3.82% (p=0.008 n=5+5)
wuffs_gif_decode_10k_bgra/clang5 748MB/s ± 1% 742MB/s ± 0% ~ (p=0.151 n=5+5)
wuffs_gif_decode_10k_indexed/clang5 202MB/s ± 1% 198MB/s ± 1% -1.69% (p=0.008 n=5+5)
wuffs_gif_decode_20k/clang5 251MB/s ± 0% 251MB/s ± 1% ~ (p=1.000 n=4+5)
wuffs_gif_decode_100k_artificial/clang5 545MB/s ± 1% 563MB/s ± 1% +3.21% (p=0.008 n=5+5)
wuffs_gif_decode_100k_realistic/clang5 226MB/s ± 1% 228MB/s ± 0% +0.96% (p=0.016 n=5+5)
wuffs_gif_decode_1000k/clang5 230MB/s ± 1% 232MB/s ± 0% +1.25% (p=0.008 n=5+5)
wuffs_gif_decode_anim_screencap/clang5 1.07GB/s ± 1% 1.11GB/s ± 1% +3.52% (p=0.008 n=5+5)
wuffs_gif_decode_1k_bw/gcc7 467MB/s ± 0% 486MB/s ± 1% +4.11% (p=0.008 n=5+5)
wuffs_gif_decode_1k_color/gcc7 196MB/s ± 0% 186MB/s ± 1% -4.69% (p=0.008 n=5+5)
wuffs_gif_decode_10k_bgra/gcc7 639MB/s ± 1% 629MB/s ± 1% -1.69% (p=0.008 n=5+5)
wuffs_gif_decode_10k_indexed/gcc7 202MB/s ± 1% 199MB/s ± 0% -1.13% (p=0.016 n=5+5)
wuffs_gif_decode_20k/gcc7 243MB/s ± 1% 243MB/s ± 0% ~ (p=0.730 n=5+4)
wuffs_gif_decode_100k_artificial/gcc7 510MB/s ± 0% 510MB/s ± 1% ~ (p=1.000 n=5+5)
wuffs_gif_decode_100k_realistic/gcc7 211MB/s ± 0% 212MB/s ± 0% +0.55% (p=0.008 n=5+5)
wuffs_gif_decode_1000k/gcc7 214MB/s ± 0% 215MB/s ± 0% ~ (p=0.056 n=5+5)
wuffs_gif_decode_anim_screencap/gcc7 1.03GB/s ± 1% 1.05GB/s ± 3% ~ (p=0.151 n=5+5)
wuffs_lzw_decode_20k/clang5 267MB/s ± 2% 272MB/s ± 0% +1.79% (p=0.008 n=5+5)
wuffs_lzw_decode_100k/clang5 451MB/s ± 2% 469MB/s ± 1% +3.99% (p=0.008 n=5+5)
wuffs_lzw_decode_20k/gcc7 268MB/s ± 0% 269MB/s ± 0% +0.40% (p=0.032 n=5+5)
wuffs_lzw_decode_100k/gcc7 483MB/s ± 1% 483MB/s ± 0% ~ (p=1.000 n=5+5)
2019-02-23 13:13:26 +11:00
Nigel Tao
8b2c948f1b
Work around clang memset / branch performance
...
name old speed new speed delta
wuffs_deflate_decode_1k/clang5 163MB/s ± 0% 163MB/s ± 0% ~ (p=0.151 n=5+5)
wuffs_deflate_decode_10k/clang5 230MB/s ± 1% 234MB/s ± 0% +1.60% (p=0.008 n=5+5)
wuffs_deflate_decode_100k_just_one_read/clang5 262MB/s ± 1% 265MB/s ± 0% +0.97% (p=0.008 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/clang5 220MB/s ± 0% 221MB/s ± 0% +0.59% (p=0.008 n=5+5)
wuffs_deflate_decode_1k/gcc7 193MB/s ± 1% 194MB/s ± 0% ~ (p=0.151 n=5+5)
wuffs_deflate_decode_10k/gcc7 276MB/s ± 1% 276MB/s ± 1% ~ (p=0.690 n=5+5)
wuffs_deflate_decode_100k_just_one_read/gcc7 325MB/s ± 0% 324MB/s ± 1% ~ (p=0.690 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/gcc7 258MB/s ± 1% 258MB/s ± 0% ~ (p=0.690 n=5+5)
wuffs_gif_decode_1k_bw/clang5 430MB/s ± 1% 445MB/s ± 1% +3.58% (p=0.008 n=5+5)
wuffs_gif_decode_1k_color/clang5 186MB/s ± 1% 192MB/s ± 0% +3.17% (p=0.008 n=5+5)
wuffs_gif_decode_10k_bgra/clang5 729MB/s ± 1% 748MB/s ± 1% +2.53% (p=0.008 n=5+5)
wuffs_gif_decode_10k_indexed/clang5 196MB/s ± 1% 202MB/s ± 1% +2.71% (p=0.008 n=5+5)
wuffs_gif_decode_20k/clang5 242MB/s ± 2% 251MB/s ± 0% +3.54% (p=0.016 n=5+4)
wuffs_gif_decode_100k_artificial/clang5 539MB/s ± 1% 545MB/s ± 1% ~ (p=0.095 n=5+5)
wuffs_gif_decode_100k_realistic/clang5 221MB/s ± 0% 226MB/s ± 1% +2.32% (p=0.008 n=5+5)
wuffs_gif_decode_1000k/clang5 224MB/s ± 0% 230MB/s ± 1% +2.28% (p=0.008 n=5+5)
wuffs_gif_decode_anim_screencap/clang5 1.06GB/s ± 0% 1.07GB/s ± 1% +1.31% (p=0.008 n=5+5)
wuffs_gif_decode_1k_bw/gcc7 478MB/s ± 0% 467MB/s ± 0% -2.27% (p=0.008 n=5+5)
wuffs_gif_decode_1k_color/gcc7 194MB/s ± 0% 196MB/s ± 0% +0.94% (p=0.008 n=5+5)
wuffs_gif_decode_10k_bgra/gcc7 635MB/s ± 1% 639MB/s ± 1% ~ (p=0.056 n=5+5)
wuffs_gif_decode_10k_indexed/gcc7 200MB/s ± 1% 202MB/s ± 1% ~ (p=0.095 n=5+5)
wuffs_gif_decode_20k/gcc7 242MB/s ± 1% 243MB/s ± 1% ~ (p=0.421 n=5+5)
wuffs_gif_decode_100k_artificial/gcc7 509MB/s ± 0% 510MB/s ± 0% ~ (p=1.000 n=5+5)
wuffs_gif_decode_100k_realistic/gcc7 210MB/s ± 0% 211MB/s ± 0% +0.50% (p=0.016 n=5+5)
wuffs_gif_decode_1000k/gcc7 214MB/s ± 0% 214MB/s ± 0% ~ (p=0.151 n=5+5)
wuffs_gif_decode_anim_screencap/gcc7 1.03GB/s ± 0% 1.03GB/s ± 1% ~ (p=0.421 n=5+5)
wuffs_lzw_decode_20k/clang5 263MB/s ± 1% 267MB/s ± 2% ~ (p=0.151 n=5+5)
wuffs_lzw_decode_100k/clang5 427MB/s ± 1% 451MB/s ± 2% +5.61% (p=0.008 n=5+5)
wuffs_lzw_decode_20k/gcc7 270MB/s ± 0% 268MB/s ± 0% -0.66% (p=0.008 n=5+5)
wuffs_lzw_decode_100k/gcc7 481MB/s ± 1% 483MB/s ± 1% ~ (p=0.222 n=5+5)
2019-02-23 12:47:41 +11:00
Nigel Tao
92959fb81f
Check that extra-field types aren't refined
2019-02-16 15:40:02 +11:00
Nigel Tao
21eb64f4c6
wuffs gen -version=0.2.0-alpha.32
2019-02-16 14:54:25 +11:00