Nigel Tao
569a91892e
check: drop facts before/after an IOManip
2024-02-09 15:31:50 +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
19f56ebfd2
lang: allow "slice_var as ptr array[etc] etc"
2023-06-13 22:38:25 +10:00
Nigel Tao
8ac22ceab2
cgen: allow "var x : nptr array[etc] etc"
2023-06-13 10:49:37 +10:00
Nigel Tao
ed48514f30
Remove ast.NewExpr statusPkg arg
2020-06-10 12:05:48 +10:00
Nigel Tao
fb9a0964a2
Fix associative op const-value calculation
2020-02-08 14:54:00 +11:00
Nigel Tao
f877fb2c59
Use the workbuf instead of lzw.decoder.suffixes
...
This commit will soon be followed by a rollback, but it is committed
anyway so that we can refer to these numbers in the git log.
name old speed new speed delta
wuffs_lzw_decode_20k/clang5 255MB/s ± 0% 241MB/s ± 0% -5.63% (p=0.008 n=5+5)
wuffs_lzw_decode_100k/clang5 418MB/s ± 1% 401MB/s ± 1% -4.02% (p=0.008 n=5+5)
wuffs_lzw_decode_20k/gcc7 255MB/s ± 1% 235MB/s ± 0% -7.88% (p=0.008 n=5+5)
wuffs_lzw_decode_100k/gcc7 444MB/s ± 1% 382MB/s ± 0% -13.90% (p=0.008 n=5+5)
wuffs_gif_decode_1k_bw/clang5 239MB/s ± 2% 235MB/s ± 1% -1.89% (p=0.016 n=5+5)
wuffs_gif_decode_1k_color/clang5 135MB/s ± 0% 132MB/s ± 0% -1.86% (p=0.008 n=5+5)
wuffs_gif_decode_10k_bgra/clang5 692MB/s ± 1% 678MB/s ± 0% -2.08% (p=0.008 n=5+5)
wuffs_gif_decode_10k_indexed/clang5 186MB/s ± 0% 181MB/s ± 0% -2.58% (p=0.008 n=5+5)
wuffs_gif_decode_20k/clang5 237MB/s ± 1% 226MB/s ± 0% -4.46% (p=0.008 n=5+5)
wuffs_gif_decode_100k_artificial/clang5 536MB/s ± 0% 506MB/s ± 0% -5.53% (p=0.008 n=5+5)
wuffs_gif_decode_100k_realistic/clang5 219MB/s ± 0% 203MB/s ± 1% -7.11% (p=0.008 n=5+5)
wuffs_gif_decode_1000k/clang5 222MB/s ± 0% 206MB/s ± 0% -7.25% (p=0.008 n=5+5)
wuffs_gif_decode_anim_screencap/clang5 1.07GB/s ± 0% 1.04GB/s ± 1% -3.11% (p=0.008 n=5+5)
wuffs_gif_decode_1k_bw/gcc7 262MB/s ± 0% 255MB/s ± 1% -2.63% (p=0.008 n=5+5)
wuffs_gif_decode_1k_color/gcc7 142MB/s ± 1% 137MB/s ± 1% -3.38% (p=0.008 n=5+5)
wuffs_gif_decode_10k_bgra/gcc7 596MB/s ± 1% 593MB/s ± 0% ~ (p=0.151 n=5+5)
wuffs_gif_decode_10k_indexed/gcc7 185MB/s ± 0% 182MB/s ± 2% -1.63% (p=0.008 n=5+5)
wuffs_gif_decode_20k/gcc7 230MB/s ± 0% 226MB/s ± 0% -1.78% (p=0.008 n=5+5)
wuffs_gif_decode_100k_artificial/gcc7 490MB/s ± 1% 488MB/s ± 0% ~ (p=0.095 n=5+5)
wuffs_gif_decode_100k_realistic/gcc7 203MB/s ± 1% 203MB/s ± 0% ~ (p=0.421 n=5+5)
wuffs_gif_decode_1000k/gcc7 207MB/s ± 0% 207MB/s ± 0% ~ (p=1.000 n=5+5)
wuffs_gif_decode_anim_screencap/gcc7 1.04GB/s ± 0% 1.03GB/s ± 0% -0.83% (p=0.008 n=5+5)
2019-02-03 14:57:34 +11:00
Nigel Tao
7405307173
Propagate tighter bounds checks after assignments
2018-12-26 16:52:55 +11:00
Nigel Tao
20e82ba97b
Use interval.IntRange instead of ast.Bounds
2018-12-26 14:02:34 +11:00
Nigel Tao
9573b88a02
Remove unused appendFact code path
2018-10-14 13:11:58 +11:00
Nigel Tao
ae41c7ceb5
Add an ast.Bounds type
2018-07-07 08:43:23 +10:00
Nigel Tao
ccb78f5db7
Rename ast.Node methods from Foo to AsFoo
2018-07-01 20:41:21 +10:00
Nigel Tao
e00e71da7b
Remove ast.FlagsTypeChecked
2018-05-14 16:11:18 +10:00
Nigel Tao
eeebd58d7b
Remove token ID/Key distinction, part 11 of N
2018-04-15 17:57:10 +10:00
Nigel Tao
1004d898d5
Add statusPkg arg to ast.NewExpr
2017-12-29 13:33:46 +11:00
Nigel Tao
8b4ba30a36
Rename some ast.Expr methods
2017-12-29 12:58:01 +11:00
Nigel Tao
7601fb45ce
Rename String(*token.Map) to Str(*token.Map)
2017-12-01 11:22:08 +11:00
Nigel Tao
79a94558be
Rename PUFFS to WUFFS, part 5 of N
2017-11-30 16:37:20 +11:00
Nigel Tao
0cea46531b
Rename PUFFS to WUFFS, part 2 of N
2017-11-30 16:23:16 +11:00
Nigel Tao
d4372cb5b8
Change license to Apache 2.
...
Also remove explicit PATENTS file. The new LICENSE file already
discusses patents.
Note that the Puffs project has not yet been publicly released.
2017-10-12 11:17:41 +11:00
Nigel Tao
3b57548b0d
Generate C code for a non-trivial slice-of-slice.
2017-09-29 17:07:41 +10:00
Nigel Tao
9933c971a2
Factor out a evalConstValueBinaryOp function.
2017-07-22 13:55:39 +10:00
Nigel Tao
dec234779e
Generate lang/check/reason.go.
2017-07-22 12:49:00 +10:00
Nigel Tao
61b771a418
Refactor the bounds checker's list of reasons.
2017-07-22 10:24:48 +10:00
Nigel Tao
389d9bc8bf
Remove the placeholder code limit count.
2017-07-22 10:14:50 +10:00
Nigel Tao
fd07fa1f27
Decode flate's clcode symbols.
2017-07-21 17:47:58 +10:00
Nigel Tao
f7fb991619
Implement init_huffman.
2017-07-21 15:55:49 +10:00
Nigel Tao
93ca2f7496
Fix otherHandSide copy/pasto.
...
The reverse of "x < y" is "y > x", not "y >= x".
2017-06-22 14:38:42 +10:00
Nigel Tao
98a07921b1
Let "x != lo" narrow x's bounds lo..hi.
2017-06-10 14:43:16 +10:00
Nigel Tao
70d62bc608
Propagate "x == constValue" in bounds checking.
2017-06-10 11:53:50 +10:00
Nigel Tao
ddbbdecce6
Add use_save_code to std/gif/decode_lzw.puffs.
2017-06-09 14:51:39 +10:00
Nigel Tao
6e7e566232
Rename token.IDMap to token.Map.
2017-06-08 13:10:01 +10:00
Nigel Tao
ee27dffa9e
Update facts after "x -= y".
2017-06-02 12:21:28 +10:00
Nigel Tao
747247a557
Rename some vars for consistency.
2017-06-02 11:15:28 +10:00
Nigel Tao
51da37c661
Update facts after "x += y".
2017-06-02 10:28:46 +10:00
Nigel Tao
1bfd5804bf
Accept via "a < (b + c): a < c; 0 <= b".
2017-06-01 21:24:39 +10:00
Nigel Tao
3f5bb7a02b
Check a while loop's pre and inv conditions.
2017-06-01 17:11:01 +10:00
Nigel Tao
9d18ffb1d8
Rename some "l0, l1" variables for consistency.
2017-05-20 12:37:43 +10:00
Nigel Tao
5bc5e43335
Actually check assertions.
2017-05-20 12:34:02 +10:00
Nigel Tao
6da91a226c
Add fact tracking.
2017-05-19 14:41:55 +10:00