Nigel Tao
f3b9704e4d
Rename some color_u32_argb_premul conversion funcs
2020-05-19 23:39:26 +10:00
Nigel Tao
c7e5ca1545
Expand supported pixel_swizzler dst+src pixfmt's
2020-05-19 23:27:26 +10:00
Nigel Tao
509b3e7c43
Fix pixel_swizzler dst offset scalar
2020-05-19 23:23:05 +10:00
Nigel Tao
473427c015
Re-organize internal/cgen/base/image-impl.c
2020-05-19 23:21:09 +10:00
Nigel Tao
ab257af2cf
Let pixel_swizzler blend src_over a nonpremul dst
2020-05-18 10:58:37 +10:00
Nigel Tao
d585f9b902
Add more pixel formats to set_color_u32_at
2020-05-16 11:23:44 +10:00
Nigel Tao
9a1b8def46
Tweak pixel_format bits
2020-05-16 10:12:16 +10:00
Nigel Tao
ddc41cb43f
Add pixel swizzler test
2020-05-15 21:46:01 +10:00
Nigel Tao
2c643aa704
Add example/convert-to-nia
2020-05-14 21:44:03 +10:00
Nigel Tao
f8f07d8e13
Move premul/non-premul conversions to image-public
2020-05-14 21:22:52 +10:00
Nigel Tao
621ea5adf3
Have examples use overwrite_instead_of_blend
2020-05-14 21:20:31 +10:00
Nigel Tao
f602237490
Tweak NIA/NIA duration wire format
...
Durations now take 63 bits, not 62, which matches the bit depth of a
non-negative int64_t.
Frame durations now come before, not after, the frame pixels.
2020-05-14 21:11:08 +10:00
Nigel Tao
ad1cff3921
Add tell_me_more? mechanism
2020-05-12 11:12:39 +10:00
Nigel Tao
c510bc0c91
Roll forward 6a85e9a6
...
6a85e9a6a9 rolled back
a4527c359a "Update seed_corpora.txt".
The oss-fuzz build should be fixed by:
https://github.com/google/oss-fuzz/pull/3763
2020-05-06 14:22:51 +10:00
Nigel Tao
6a85e9a6a9
Roll back a4527c35
...
a4527c359a is "Update seed_corpora.txt".
This broke the oss-fuzz build:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22035
2020-05-06 10:42:56 +10:00
Nigel Tao
b66cf775bf
Add Muhammad Aldo Firmansyah to A+C
2020-05-04 11:26:51 +10:00
Nigel Tao
db9459deb3
Fix /README.md update date
2020-05-04 11:22:05 +10:00
Nigel Tao
297a94d627
Merge pull request #28 from TheCrott/master
...
Update seed_corpora.txt
2020-05-04 11:19:44 +10:00
Nigel Tao
1f424b2ea7
Propagate const-values to idents of consts
2020-04-16 09:37:05 +10:00
Nigel Tao
9f6c40246f
Simplify cgen of empty functions
2020-04-16 09:34:50 +10:00
Nigel Tao
e39f3cbf42
Redo Wuffs structs' quirk bool fields
2020-04-14 23:03:18 +10:00
Nigel Tao
532e18c4a5
Add colons to const syntax
2020-04-14 14:57:30 +10:00
Nigel Tao
80071730a3
Add std/json CLASS_XXX constants
2020-04-13 16:06:16 +10:00
Nigel Tao
74871344f0
Capitalize Wuffs const names
2020-04-13 15:52:36 +10:00
Nigel Tao
623811086f
Add example/README.md
2020-04-12 21:13:42 +10:00
Nigel Tao
4bc42db1d3
Add set_quirk_enabled interface methods
2020-04-12 20:53:54 +10:00
Nigel Tao
873c6b400a
Add alloc functions
2020-04-12 20:34:33 +10:00
Nigel Tao
f7ea462c00
Fix human-readable vmajor when out of base38 range
2020-04-10 22:44:13 +10:00
Nigel Tao
492ee61391
Add doc/note link from base38-etc.md to tokens.md
2020-04-10 22:00:04 +10:00
Nigel Tao
335819f90e
Fix some doc/note/tokens.md typos
2020-04-10 21:24:43 +10:00
Nigel Tao
6612d90ca2
Re-write bit ranges in the docs
2020-04-09 22:29:45 +10:00
Nigel Tao
496e88b6c5
Remove wuffs_base__token__link_prev
2020-04-09 22:11:08 +10:00
Nigel Tao
2ef3999d6d
Remove use of wuffs_base__token__link_prev
2020-04-09 17:24:39 +10:00
Nigel Tao
478d1b817c
Add doc/note/tokens.md
2020-04-08 23:31:18 +10:00
Nigel Tao
df3acfbb21
Clarify std/json quirk_allow_backslash_x semantics
2020-04-08 11:08:01 +10:00
Nigel Tao
d83bd8d036
Add std/json quirk_allow_ascii_control_codes
2020-04-07 17:50:47 +10:00
Nigel Tao
6f67bbc4b2
Add std/json quirk_allow_backslash_new_line
2020-04-07 17:24:31 +10:00
Nigel Tao
2db72dabe5
Re-assign JSON quirk numbers
2020-04-07 17:17:54 +10:00
Nigel Tao
b5d6f8d038
Have example/jsonfindptrs check unpaired keys
2020-04-06 20:57:40 +10:00
Nigel Tao
345f1aa060
Remove jsonfindptrs unnecessary curly braces
2020-04-05 22:10:37 +10:00
Nigel Tao
88a449e3d7
Add perf comment to json.decoder.decode_string
2020-04-04 11:41:09 +11:00
Nigel Tao
695a72a37c
Roll back 'factor out json.decoder.decode_string'
...
See the previous commit for the rationale.
2020-04-04 11:32:35 +11:00
Nigel Tao
86d3b89f9a
Factor out json.decoder.decode_string
...
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_json_decode_1k/clang5 607MB/s ± 0% 543MB/s ± 1% -10.68% (p=0.008 n=5+5)
wuffs_json_decode_21k_formatted/clang5 330MB/s ± 2% 320MB/s ± 3% ~ (p=0.056 n=5+5)
wuffs_json_decode_26k_compact/clang5 468MB/s ± 2% 434MB/s ± 1% -7.26% (p=0.008 n=5+5)
wuffs_json_decode_217k_stringy/clang5 391MB/s ± 1% 363MB/s ± 0% -7.03% (p=0.008 n=5+5)
wuffs_json_decode_1k/gcc7 715MB/s ± 0% 583MB/s ± 0% -18.38% (p=0.016 n=5+4)
wuffs_json_decode_21k_formatted/gcc7 403MB/s ± 0% 350MB/s ± 0% -12.94% (p=0.016 n=5+4)
wuffs_json_decode_26k_compact/gcc7 534MB/s ± 0% 420MB/s ± 1% -21.41% (p=0.008 n=5+5)
wuffs_json_decode_217k_stringy/gcc7 435MB/s ± 0% 359MB/s ± 0% -17.44% (p=0.008 n=5+5)
2020-04-04 11:32:35 +11:00
Nigel Tao
721190afff
Have example C++ program check for -std=c++11
2020-04-03 22:25:21 +11:00
Nigel Tao
2db88dd98e
Fix -Wshadow warnings
2020-04-03 22:13:56 +11:00
Nigel Tao
1a1f36ce13
Disable clang's -Wunreachable-code warning
2020-04-03 21:57:49 +11:00
Nigel Tao
ecd3285567
Simplify a std/json while as an if
2020-04-03 12:35:18 +11:00
Nigel Tao
161fa6ae4a
Ban continue in a double-curly while loop
2020-04-03 12:23:57 +11:00
Nigel Tao
b791b441ef
Improve error message for unreachable code
2020-04-03 10:58:04 +11:00
Nigel Tao
e5c86ec191
Let an unbroken "while true" terminate a block
2020-04-03 10:46:05 +11:00
Nigel Tao
4a89913a9b
Ban duplicate loop labels
2020-04-03 10:33:05 +11:00
Nigel Tao
ee23f8b3d9
Move loop/jump matching from check to parse
2020-04-03 10:26:35 +11:00
Nigel Tao
94440cf6ff
Rename example/json* -o flag
2020-04-02 22:28:24 +11:00
Nigel Tao
64dbd00b07
Rename wuffs_base__make_etc_buffer_{read,writ}er
2020-04-02 22:21:36 +11:00
Nigel Tao
3fe3f84106
Add double-curly blocks
2020-04-02 21:56:53 +11:00
Nigel Tao
4cfc367a9b
Factor out an ast.Terminates function
2020-04-02 17:32:37 +11:00
Nigel Tao
57fe5d95f6
Re-order some token.ID numbers
2020-04-02 17:18:43 +11:00
Nigel Tao
f2536b2be6
Re-format built-in method signatures' constants
2020-04-02 12:37:09 +11:00
Nigel Tao
f515dc0848
Rename io_writer.write_fast_etc
2020-04-02 12:32:40 +11:00
Nigel Tao
3456f39f9d
Rename token_writer.write_fast_token
2020-04-02 12:26:57 +11:00
Nigel Tao
293b3c7812
Remove unused token_writer.write_token method
2020-04-02 12:15:50 +11:00
Nigel Tao
3385efa7fd
Update token debug format for extended tokens
2020-04-02 12:10:10 +11:00
Nigel Tao
462f86675d
Add an "extended token" concept
2020-04-02 11:20:45 +11:00
Nigel Tao
7d684f94ae
Update hello-wuffs-c/README.md for previous commit
2020-04-01 11:26:44 +11:00
Nigel Tao
1f0bf016e7
Fix hello-wuffs-c for recent language changes
2020-04-01 09:03:11 +11:00
Nigel Tao
d9d022b2df
Fix std/json test/bench naming convention typos
2020-03-31 22:49:19 +11:00
Nigel Tao
ac8f4d0c3a
Add Leo Neat to CONTRIBUTORS
...
"Google Inc." is already in AUTHORS.
2020-03-31 22:44:26 +11:00
Nigel Tao
9dd8002224
Merge pull request #27 from Leo-Neat/master
...
Add CIFuzz
2020-03-31 22:41:41 +11:00
Nigel Tao
7edf71414f
Fix std/json replace_invalid_unicode copy/pasto
...
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21465
2020-03-31 22:37:43 +11:00
Nigel Tao
e2adb87cdd
Fix etc__parse_number_f64 goto-crosses-init
2020-03-31 22:28:19 +11:00
Nigel Tao
17944aae67
Optimize wuffs_base__parse_number_f64
...
name old time/op new time/op delta
strconv_parse_number_f64_1_lsh53_add0/clang5 100ns ± 0% 100ns ± 1% ~ (p=1.000 n=4+5)
strconv_parse_number_f64_1_lsh53_add1/clang5 741ns ± 1% 749ns ± 0% +1.05% (p=0.024 n=5+5)
strconv_parse_number_f64_pi_long/clang5 153ns ± 1% 153ns ± 0% ~ (p=0.238 n=5+4)
strconv_parse_number_f64_pi_short/clang5 62.0ns ± 2% 45.4ns ± 3% -26.77% (p=0.008 n=5+5)
strconv_parse_number_f64_1_lsh53_add0/gcc7 96.6ns ± 4% 95.8ns ± 1% ~ (p=0.794 n=5+5)
strconv_parse_number_f64_1_lsh53_add1/gcc7 757ns ± 0% 752ns ± 0% -0.63% (p=0.008 n=5+5)
strconv_parse_number_f64_pi_long/gcc7 151ns ± 3% 162ns ± 0% +7.43% (p=0.016 n=5+4)
strconv_parse_number_f64_pi_short/gcc7 55.0ns ± 0% 49.0ns ± 2% -10.91% (p=0.000 n=4+5)
2020-03-31 22:20:01 +11:00
Nigel Tao
d587c9e4fa
Add medium-precision-binary floating point impl
...
name old time/op new time/op delta
strconv_parse_number_f64_1_lsh53_add0/clang5 218ns ± 1% 100ns ± 0% -54.13% (p=0.016 n=5+4)
strconv_parse_number_f64_1_lsh53_add1/clang5 716ns ± 2% 741ns ± 1% +3.46% (p=0.008 n=5+5)
strconv_parse_number_f64_pi_long/clang5 438ns ± 2% 153ns ± 1% -65.19% (p=0.008 n=5+5)
strconv_parse_number_f64_pi_short/clang5 174ns ± 2% 62ns ± 2% -64.37% (p=0.008 n=5+5)
strconv_parse_number_f64_1_lsh53_add0/gcc7 221ns ± 1% 97ns ± 4% -56.25% (p=0.008 n=5+5)
strconv_parse_number_f64_1_lsh53_add1/gcc7 742ns ± 1% 757ns ± 0% +2.02% (p=0.008 n=5+5)
strconv_parse_number_f64_pi_long/gcc7 477ns ± 1% 151ns ± 3% -68.40% (p=0.008 n=5+5)
strconv_parse_number_f64_pi_short/gcc7 191ns ± 1% 55ns ± 0% -71.14% (p=0.000 n=5+4)
2020-03-31 22:18:54 +11:00
Nigel Tao
3f0d66285f
Add bench_strconv_parse_number_f64_etc
2020-03-28 11:16:06 +11:00
Nigel Tao
b72dd16f9b
Have test/* global variable names start with g_
2020-03-27 17:12:38 +11:00
Nigel Tao
c0bd9df978
Have script/*.c global var names start with g_
2020-03-26 21:55:44 +11:00
Nigel Tao
f909c69deb
Have fuzz/* global variable names start with g_
2020-03-26 14:49:43 +11:00
Nigel Tao
d60815c93f
Have example/* global variable names start with g_
2020-03-26 14:32:35 +11:00
Nigel Tao
f3146c2ea9
Add base.token_decoder.workbuf_len
2020-03-26 08:47:42 +11:00
Nigel Tao
40d200cdab
Drop cached expr MBounds when re-checking asserts
...
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21371
2020-03-26 08:14:43 +11:00
Nigel Tao
58351d44da
Make endwhile mandatory for nameless loops
2020-03-25 21:40:00 +11:00
Nigel Tao
3c38f671fa
Remove empty "if (coro_susp_point) {}"
2020-03-25 21:24:00 +11:00
Nigel Tao
9e50918718
Add single-quoted strings
2020-03-25 19:41:02 +11:00
Nigel Tao
3bfed6d812
Rename std/json quirk_replace_invalid_utf_8
2020-03-24 17:44:47 +11:00
Nigel Tao
59eab68360
Fix -Werror=conversion in hexadecimal__decodeN
2020-03-24 17:22:17 +11:00
Nigel Tao
5d5a17cc9c
Add test/data/json-quirks.json
2020-03-24 17:13:07 +11:00
Nigel Tao
5695385055
Add fuzz/c/std/json_fuzzer.c quirks
2020-03-24 14:46:05 +11:00
Nigel Tao
60e928f7c9
Fix -Wmaybe-uninitialized in test/c/std/json
2020-03-24 14:04:41 +11:00
Nigel Tao
2ca0ef7bd5
Rename some std/json variables
2020-03-24 14:02:08 +11:00
Nigel Tao
93882564fd
Rename std/json quirk_allow_final_comma
2020-03-24 14:00:21 +11:00
Nigel Tao
d7c72373f3
Add std/json quirk_allow_inf_nan_numbers
2020-03-24 13:58:38 +11:00
Nigel Tao
b43e2493a2
Add std/json quirk_allow_final_comma
2020-03-22 21:42:15 +11:00
Nigel Tao
eb06ed77ba
Add std/json quirk_allow_comment_etc
2020-03-22 21:07:12 +11:00
Nigel Tao
21f6a5df4a
Add std/json CLASS_COMMENT
2020-03-21 22:33:39 +11:00
Nigel Tao
502c8eff56
Add std/json quirk_allow_backslash_x
2020-03-21 21:42:30 +11:00
Nigel Tao
c6b2aded30
Add wuffs_base__hexadecimal__decodeN
2020-03-20 22:48:06 +11:00
Nigel Tao
83e7da0a6a
Add std/json quirk_allow_backslash_capital_u
2020-03-19 23:20:45 +11:00
Nigel Tao
97f7f28218
Add std/json backslash-related quirks
2020-03-19 15:56:21 +11:00
Nigel Tao
b86373aff5
Add io_reader.peek_u64le_at
2020-03-19 11:33:22 +11:00
Nigel Tao
31cfaaeb4e
Add std/json quirk_replace_invalid_utf_8
2020-03-19 10:37:18 +11:00
Nigel Tao
c5c10e95b7
Remove some superfluous empty // comments
2020-03-18 21:58:19 +11:00