Commit Graph
91 Commits
Author SHA1 Message Date
Nigel Tao 4323a16707 Add interface method implementations 2020-01-06 23:24:08 +11:00
Nigel Tao 0c63d6e489 Rename writeFunctionSignature modes 2020-01-06 22:08:37 +11:00
Nigel Tao 9e033579c8 Add interface method signatures 2020-01-06 21:59:30 +11:00
Nigel Tao 989e7b1c2c Delete C++ implicit constructor for wuffs types 2020-01-06 16:22:19 +11:00
Nigel Tao 4c9be03baa Add interface struct declarations 2020-01-06 15:16:27 +11:00
Nigel Tao 5bf070b187 Add a wuffs_base__vtable type 2020-01-06 12:02:41 +11:00
Nigel Tao 9e802a5f84 Have wuffs_base__pixel_config__set take repr args 2020-01-05 15:34:05 +11:00
Nigel Tao b666ab06f7 Make wuffs_base__pixel_subsampling a struct 2020-01-05 15:27:11 +11:00
Nigel Tao 4f53f3101f Make wuffs_base__pixel_format a struct 2020-01-05 14:18:48 +11:00
Nigel Tao fabfff05d1 Have pixel_foo methods take pointer receivers 2020-01-05 13:33:52 +11:00
Nigel Tao 0fa32bd09f Rename warnings to notes 2020-01-05 13:15:00 +11:00
Nigel Tao e6db7f6a40 Make wuffs_base__status a struct 2020-01-05 10:48:20 +11:00
Nigel Tao fb54ba452f Add wuffs_base__make_status 2020-01-02 20:44:23 +11:00
Nigel Tao 355a95eeea Add wuffs_base__status__message 2019-12-15 13:31:17 +11:00
Nigel Tao f32ad2869c Add doc/note/statuses.md 2019-12-12 15:04:39 +11:00
Nigel Tao 3923bb9637 Change pixel_subsampling from shift to divide 2019-12-10 20:39:37 +11:00
Nigel Tao 721678ed75 Add doc/note/pixel-subsampling.md 2019-12-10 09:40:44 +11:00
Nigel Tao 3325f73041 Let set_from_{slice,table}'s pixcfg arg be const 2019-12-03 11:30:04 +11:00
Nigel Tao 5362ca7573 Add doc/note/pixel-formats.md 2019-12-02 20:34:55 +11:00
Nigel Tao b45b28daf8 Rename doc/note/zero-initialization.md 2019-11-22 08:41:14 +11:00
Nigel Tao f10849d20b Add doc/note/zero-initialization.md 2019-11-14 20:45:48 +11:00
Nigel Tao cb7e9e0ce9 Add a ~mod* operator 2019-11-12 21:30:45 +11:00
Nigel Tao e7d30aa3bd Remove unnecessary "#ifdef WUFFS_IMPLEMENTATION"s 2019-11-02 14:45:37 +11:00
Nigel Tao 498b7138f3 Remove "static const uint32_t etc" from cgen
They trigger compiler warnings (-Wunused-const-variable) precisely
because they're unused.
2019-11-02 12:15:01 +11:00
Nigel Tao c8087550ec Add doc/note/ranges-and-rects.md 2019-10-28 21:55:47 +11:00
Nigel Tao cdb60a950d Tweak LEAVE_INTERNAL_BUFFERS_UNINITIALIZED comment 2019-10-23 20:18:17 +11:00
Nigel Tao a24a1d427e Avoid gcc's -Werror=array-bounds for memset 2019-10-14 09:37:15 +11:00
Nigel Tao a9ea63ff06 Rename [i:j] to [i .. j], the same as Rust 2019-10-12 21:14:18 +11:00
Nigel Tao b0f18dacbd Remove deprecated wuffs_base__null_etc functions 2019-10-05 16:27:53 +10:00
Nigel Tao 1c1ce9b19f Drop the unused ref and deref operators 2019-10-05 12:41:09 +10:00
Nigel Tao 344efe7926 Remove deprecated io_buffer reader method 2019-09-21 17:34:50 +10:00
Nigel Tao 3fb68ac477 Rename some liveness.go types 2019-09-21 13:18:27 +10:00
Nigel Tao 1fc8910952 Remove liveness analysis' subExprFilter type 2019-09-21 13:11:53 +10:00
Nigel Tao f61798c2a8 Update liveness.go overview comment 2019-09-21 12:48:18 +10:00
Nigel Tao c93dcf0944 Rename resume.go to liveness.go 2019-09-21 12:42:55 +10:00
Nigel Tao ea3dbc5f2d Restore deprecated io_buffer reader method 2019-09-14 13:04:45 +10:00
Nigel Tao 74614a2921 Fix calls to the deprecated null_io_buffer 2019-09-14 12:06:27 +10:00
Nigel Tao 69db19a26c Remove some hard-coding of cgen I/O built-in's 2019-07-27 08:29:32 +10:00
Nigel Tao a4195136bb Remove unnecessary etc__io_buffer__struct C name 2019-07-21 16:37:06 +10:00
Nigel Tao 6886500d71 Remove deprecated io_buffer reader/writer methods 2019-07-21 16:35:22 +10:00
Nigel Tao 392c8c544a Rename null_io_buffer etc to empty_io_buffer 2019-07-13 10:55:51 +10:00
Nigel Tao e477175fd2 Remove wuffs_base__global__null_io_buffer 2019-07-13 10:47:20 +10:00
Nigel Tao 2e901b6f8a Simplify some io0_etc references 2019-07-13 08:10:28 +10:00
Nigel Tao 3037f1e389 Fix empty initializer, which is not C99 2019-07-07 18:02:57 +10:00
Nigel Tao fc0d93fc66 Reject nullptr-valued io_buffer* args
name                                             old speed      new speed      delta

wuffs_gif_decode_1k_bw/clang5                     417MB/s ± 0%   417MB/s ± 0%     ~     (p=0.841 n=5+5)
wuffs_gif_decode_1k_color_full_init/clang5        136MB/s ± 1%   135MB/s ± 0%   -1.07%  (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_part_init/clang5        180MB/s ± 0%   177MB/s ± 0%   -1.49%  (p=0.016 n=4+5)
wuffs_gif_decode_10k_bgra/clang5                  733MB/s ± 0%   733MB/s ± 0%     ~     (p=1.000 n=5+5)
wuffs_gif_decode_10k_indexed/clang5               197MB/s ± 0%   196MB/s ± 0%   -0.43%  (p=0.032 n=5+5)
wuffs_gif_decode_20k/clang5                       245MB/s ± 0%   249MB/s ± 0%   +1.59%  (p=0.008 n=5+5)
wuffs_gif_decode_100k_artificial/clang5           548MB/s ± 0%   553MB/s ± 0%   +0.97%  (p=0.008 n=5+5)
wuffs_gif_decode_100k_realistic/clang5            223MB/s ± 0%   226MB/s ± 0%   +1.48%  (p=0.008 n=5+5)
wuffs_gif_decode_1000k_full_init/clang5           226MB/s ± 0%   229MB/s ± 1%   +1.66%  (p=0.008 n=5+5)
wuffs_gif_decode_1000k_part_init/clang5           226MB/s ± 0%   229MB/s ± 0%   +1.51%  (p=0.008 n=5+5)
wuffs_gif_decode_anim_screencap/clang5           1.10GB/s ± 0%  1.11GB/s ± 0%   +0.91%  (p=0.008 n=5+5)

wuffs_gif_decode_1k_bw/gcc7                       465MB/s ± 2%   480MB/s ± 2%   +3.22%  (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_full_init/gcc7          142MB/s ± 1%   143MB/s ± 1%   +1.18%  (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_part_init/gcc7          186MB/s ± 0%   189MB/s ± 0%   +1.64%  (p=0.008 n=5+5)
wuffs_gif_decode_10k_bgra/gcc7                    634MB/s ± 0%   636MB/s ± 0%   +0.45%  (p=0.016 n=5+5)
wuffs_gif_decode_10k_indexed/gcc7                 198MB/s ± 0%   200MB/s ± 0%   +0.86%  (p=0.008 n=5+5)
wuffs_gif_decode_20k/gcc7                         243MB/s ± 0%   245MB/s ± 0%   +1.11%  (p=0.016 n=4+5)
wuffs_gif_decode_100k_artificial/gcc7             514MB/s ± 1%   516MB/s ± 1%     ~     (p=0.310 n=5+5)
wuffs_gif_decode_100k_realistic/gcc7              210MB/s ± 0%   214MB/s ± 0%   +1.67%  (p=0.008 n=5+5)
wuffs_gif_decode_1000k_full_init/gcc7             215MB/s ± 0%   218MB/s ± 0%   +1.53%  (p=0.008 n=5+5)
wuffs_gif_decode_1000k_part_init/gcc7             215MB/s ± 0%   218MB/s ± 0%   +1.54%  (p=0.008 n=5+5)
wuffs_gif_decode_anim_screencap/gcc7             1.07GB/s ± 1%  1.08GB/s ± 1%     ~     (p=0.095 n=5+5)

wuffs_deflate_decode_1k_full_init/clang5          156MB/s ± 0%   140MB/s ± 0%  -10.04%  (p=0.008 n=5+5)
wuffs_deflate_decode_1k_part_init/clang5          192MB/s ± 0%   170MB/s ± 0%  -11.83%  (p=0.008 n=5+5)
wuffs_deflate_decode_10k_full_init/clang5         227MB/s ± 1%   242MB/s ± 0%   +6.61%  (p=0.008 n=5+5)
wuffs_deflate_decode_10k_part_init/clang5         234MB/s ± 0%   249MB/s ± 0%   +6.79%  (p=0.008 n=5+5)
wuffs_deflate_decode_100k_just_one_read/clang5    282MB/s ± 0%   280MB/s ± 0%   -0.64%  (p=0.008 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/clang5   238MB/s ± 0%   229MB/s ± 0%   -3.71%  (p=0.008 n=5+5)

wuffs_deflate_decode_1k_full_init/gcc7            157MB/s ± 0%   158MB/s ± 0%   +0.40%  (p=0.032 n=5+5)
wuffs_deflate_decode_1k_part_init/gcc7            194MB/s ± 0%   194MB/s ± 0%     ~     (p=0.151 n=5+5)
wuffs_deflate_decode_10k_full_init/gcc7           267MB/s ± 0%   266MB/s ± 0%     ~     (p=0.222 n=5+5)
wuffs_deflate_decode_10k_part_init/gcc7           276MB/s ± 0%   275MB/s ± 1%     ~     (p=0.056 n=5+5)
wuffs_deflate_decode_100k_just_one_read/gcc7      322MB/s ± 0%   322MB/s ± 0%     ~     (p=0.548 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/gcc7     258MB/s ± 0%   258MB/s ± 0%     ~     (p=0.056 n=5+5)

wuffs_zlib_decode_10k/clang5                      212MB/s ± 0%   222MB/s ± 0%   +4.59%  (p=0.008 n=5+5)
wuffs_zlib_decode_100k/clang5                     252MB/s ± 1%   247MB/s ± 0%   -2.02%  (p=0.008 n=5+5)

wuffs_zlib_decode_10k/gcc7                        248MB/s ± 0%   253MB/s ± 0%   +2.00%  (p=0.008 n=5+5)
wuffs_zlib_decode_100k/gcc7                       283MB/s ± 0%   292MB/s ± 0%   +3.17%  (p=0.008 n=5+5)
2019-07-07 17:59:11 +10:00
Nigel Tao a36bf4be4c Tweak the order of generated C's u_r and v_r vars 2019-07-07 17:43:57 +10:00
Nigel Tao 4f489d66ce Have null_io_writer mean /dev/null not nullptr 2019-07-07 17:37:23 +10:00
Nigel Tao fcec430152 Unexport wuffs_base__null_io_{reader,writer} 2019-07-07 17:31:51 +10:00
Nigel Tao f0e9a9bc13 Remove obsolete reference to io_reader.set_limit 2019-07-07 17:21:41 +10:00
Nigel Tao 5653fb0409 Simplify wuffs_base__io_{reader,writer}__set 2019-07-07 17:19:23 +10:00