Commit Graph
43 Commits
Author SHA1 Message Date
Nigel Tao 37a3c3ce9b base: rename WUFFS_BASE__CPU_ARCH__ETC
See
https://github.com/google/wuffs/issues/148#issuecomment-2130535812

Updates #148
2024-07-08 18:14:59 +10:00
Nigel Tao 82ea1985b4 base: add optional_u63 type 2023-11-19 12:02:24 +11:00
Nigel Tao 2c2bb9baa5 cgen: simplify 1-elem in-case-of-recursion arrays 2023-11-05 11:44:21 +11:00
Nigel Tao 5407f39386 base: use wuffs_base__empty_slice_u8 more often 2023-11-02 22:43:01 +11:00
Nigel Tao 71dca5adce base: add hasher_bitvec256 type 2023-10-12 21:35:47 +11:00
Patrick Georgi f563f32f82 Add SPDX identifier to license headers
SPDX is an ISO standard for describing licenses in a computer readable
format, which is useful when applying license compliance tools and the
like to source code.

In addition to ensuring that the Wuffs C distribution is properly
annotated to the benefit of projects using Wuffs and SPDX-supporting
tools, add it everywhere else where there's a license in this repo for
consistency, too.
2023-10-06 20:52:36 +02:00
Nigel Tao 74a6ea2fcd all: relicense from Apache2 to dual Apache2/MIT
The LICENSE has changed from a single license (Apache2) to a dual
license (Apache2 or MIT, at your option).

If you've previously used Wuffs under the Apache2 license, you are able
to keep doing so. No further action required by you.

The two files listed below (previous releases) are exceptions, as they
are older snapshots, frozen in time. Their license has not changed:
release/c/wuffs-v0.2.c
release/c/wuffs-v0.3.c

Every name in the AUTHORS file, other than Google Inc., has signed
Google's CLA (Contributor License Agreement).
2023-10-06 10:00:59 +11:00
Nigel Tao f155db4d5c cgen: emit "break/continue" not "goto", part 1
name                                             old speed     new speed     delta

wuffs_jpeg_decode_19k_8bpp/clang11               229MB/s ± 0%  241MB/s ± 0%  +5.29%  (p=0.008 n=5+5)
wuffs_jpeg_decode_30k_24bpp_progressive/clang11  205MB/s ± 0%  213MB/s ± 0%  +3.89%  (p=0.008 n=5+5)
wuffs_jpeg_decode_30k_24bpp_sequential/clang11   375MB/s ± 0%  386MB/s ± 0%  +3.01%  (p=0.008 n=5+5)
wuffs_jpeg_decode_77k_24bpp/clang11              326MB/s ± 0%  341MB/s ± 0%  +4.80%  (p=0.008 n=5+5)
wuffs_jpeg_decode_552k_24bpp_420/clang11         339MB/s ± 0%  356MB/s ± 0%  +5.14%  (p=0.008 n=5+5)
wuffs_jpeg_decode_552k_24bpp_444/clang11         475MB/s ± 0%  484MB/s ± 0%  +2.04%  (p=0.008 n=5+5)
wuffs_jpeg_decode_4002k_24bpp/clang11            343MB/s ± 0%  362MB/s ± 0%  +5.77%  (p=0.008 n=5+5)

wuffs_jpeg_decode_19k_8bpp/gcc10                 245MB/s ± 0%  245MB/s ± 0%  -0.07%  (p=0.008 n=5+5)
wuffs_jpeg_decode_30k_24bpp_progressive/gcc10    254MB/s ± 0%  252MB/s ± 0%  -0.52%  (p=0.008 n=5+5)
wuffs_jpeg_decode_30k_24bpp_sequential/gcc10     514MB/s ± 0%  513MB/s ± 0%    ~     (p=0.151 n=5+5)
wuffs_jpeg_decode_77k_24bpp/gcc10                434MB/s ± 0%  433MB/s ± 0%  -0.35%  (p=0.016 n=5+4)
wuffs_jpeg_decode_552k_24bpp_420/gcc10           459MB/s ± 0%  458MB/s ± 0%  -0.12%  (p=0.016 n=5+4)
wuffs_jpeg_decode_552k_24bpp_444/gcc10           486MB/s ± 0%  486MB/s ± 0%  -0.03%  (p=0.008 n=5+5)
wuffs_jpeg_decode_4002k_24bpp/gcc10              467MB/s ± 0%  465MB/s ± 0%  -0.26%  (p=0.016 n=5+4)
2023-06-23 17:46:40 +10:00
Nigel Tao e7df7cafac cgen: add WUFFS_BASE__GENERATED_C_CODE macro
This disables UBSan's "unsigned-integer-overflow" runtime checks.

Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=59966
2023-06-20 17:04:35 +10:00
Nigel Tao f3caf09d77 lang: add read-only type decorators 2023-04-10 15:29:12 +10:00
Nigel Tao f73f95b698 Rename from ast.IOBind to ast.IOManip 2021-08-15 08:40:05 +10:00
Nigel Tao f6945c0612 Remove unnecessary "goto ok;" in generated C code 2021-06-25 14:47:10 +10:00
Nigel Tao a0984dcdd3 Limit the number of coroutines per type to 0x7FFF 2021-05-02 16:50:29 +10:00
Nigel Tao 5adb0d3c80 Add "WUFFS MULTI-FILE SECTION" comments 2021-03-25 14:02:04 +11:00
Nigel Tao 9914f7314d Add WUFFS_BASE__MAYBE_ATTRIBUTE_TARGET 2021-03-17 12:03:06 +11:00
Nigel Tao 3338b5eafa Add arm_crc32,arm_neon cpu_arch conditions 2021-02-13 17:01:09 +11:00
Nigel Tao 020b8e6903 Add cpu_arch 2021-01-15 10:26:55 +11:00
Nigel Tao 81c6437e09 Add choosy 2021-01-04 23:20:41 +11:00
Nigel Tao 42d569f5db Refactor cgen's write{Load,Save}DerivedVar 2020-11-13 22:42:41 +11:00
Nigel Tao b82396a3c6 Stop dumbindent dropping blank lines near braces 2020-06-10 21:06:06 +10:00
Nigel Tao 58c0862c50 Stop dumbindent collapsing consecutive blank lines 2020-06-10 12:22:41 +10:00
Nigel Tao d0dec081a6 Tweak cgen+dumbindent output 2020-06-05 10:22:14 +10:00
Nigel Tao b2dc84105a Clean up more wuffs-c output (before clang-format) 2020-06-04 23:26:15 +10:00
Nigel Tao 4402c1c7c0 Clean up more wuffs-c output (before clang-format) 2020-06-03 23:14:55 +10:00
Nigel Tao 9f6c40246f Simplify cgen of empty functions 2020-04-16 09:34:50 +10:00
Nigel Tao 3c38f671fa Remove empty "if (coro_susp_point) {}" 2020-03-25 21:24:00 +11:00
Nigel Tao 16867779be Tighten cgen's funk.jumpTarget return type 2020-03-01 12:01:59 +11:00
Nigel Tao e6f34fe8a9 Rename cgen's break/continue labels 2020-02-24 14:26:52 +11:00
Nigel Tao 21c87ce6b3 Skip writeSaveDerivedVar if func ends with return 2020-02-19 21:10:19 +11:00
Nigel Tao 737e31ff3a Add tokens 2020-02-11 12:02:58 +11:00
Nigel Tao b37e55f4a5 Increment coroID per-struct, not per-package 2020-02-05 17:15:09 +11:00
Nigel Tao 4ab2de9b95 Add wuffs_base__empty_{range,rect}_xx_uxx 2020-02-05 17:14:15 +11:00
Nigel Tao 2ae4a8a21c Add wbmp.decoder.ack_metadata_chunk 2020-01-16 13:45:10 +11:00
Nigel Tao 4fd9637e5a Emit stricter vtable function-pointer type 2020-01-10 14:34:53 +11:00
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 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 e477175fd2 Remove wuffs_base__global__null_io_buffer 2019-07-13 10:47:20 +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 28e4981d10 Don't suspend coroutines for warnings 2019-04-21 21:43:33 +10:00
Nigel Tao 6826f2f748 Move internal/cgen up a couple of directories 2019-03-09 13:28:59 +11:00