Nigel Tao
4a5df43aeb
Add PIXEL_FORMAT__BGRA_NONPREMUL_4X16LE
...
Binary size, before:
14272 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
14760 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
22336 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
22280 gen/lib/c/gcc-static/wuffs-base-pixconv.o
After:
18712 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
19392 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
36880 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
36824 gen/lib/c/gcc-static/wuffs-base-pixconv.o
2020-11-16 15:23:57 +11:00
Nigel Tao
904004e79a
Let non-strict JSON Pointer syntax allow "~t"
2020-11-15 20:56:04 +11:00
Nigel Tao
42d569f5db
Refactor cgen's write{Load,Save}DerivedVar
2020-11-13 22:42:41 +11:00
Nigel Tao
55caff6f95
Remove some hard-coded a_dst/a_src names in cgen
2020-11-12 23:36:37 +11:00
Nigel Tao
7ea23d56e3
Refactor cgen's writeStatementAssign
2020-11-11 23:20:08 +11:00
Nigel Tao
0566cb2a8e
Remove obsolete writeStatementAssign0 return value
2020-11-11 22:28:59 +11:00
Nigel Tao
feac89519f
Rearrange cgen temporary assignment for =?
2020-11-11 22:05:46 +11:00
Nigel Tao
b3c793eef0
Remove obsolete cgen of Optional effects
...
This if-else branch was obsoleted by commit 1ea32b37 .
2020-11-09 22:16:00 +11:00
Nigel Tao
43630d14f0
Make lang/ast Str methods return non-empty for nil
2020-11-09 21:39:50 +11:00
Nigel Tao
2dfe222681
Drop args- and this-related facts after ? call
2020-11-05 14:49:47 +11:00
Nigel Tao
b3cc3c53ad
Tweak logo ears
2020-11-03 15:46:46 +11:00
Nigel Tao
ce685a647d
Fix hpd__small_rshift clobbering the negative bit
...
Also link to the Simple Decimal Conversion blog post.
2020-11-03 15:24:02 +11:00
Nigel Tao
e80ab7b13a
Add doc/logo
2020-10-26 15:28:37 +11:00
Nigel Tao
6775c05c08
Have etc-parse-number-f64.cc test fast_float
2020-10-24 17:44:06 +11:00
Nigel Tao
93f9550720
Update manual-test-parse-number-f64.cc data repo
2020-10-23 18:46:12 +11:00
Nigel Tao
abedb38844
Delete deprecated wuffs_base__animation_blend
2020-10-09 21:36:07 +11:00
Nigel Tao
fef7967e08
Delete deprecated {reader,writer}_io_position
2020-10-09 21:29:11 +11:00
Nigel Tao
1d8d18f400
Add link to Eisel-Lemire blog post
2020-10-07 22:13:51 +11:00
Nigel Tao
ba3818cb6b
Add more parse_number_f64 test cases
2020-09-28 12:51:45 +10:00
Nigel Tao
6c2fb9a2fd
Tweak test/data/artif*/gif-transparent-index.gif
2020-09-27 00:09:25 +10:00
Nigel Tao
344123b179
Add test/data/artificial/gif-transparent-index.gif
2020-09-25 23:01:43 +10:00
Nigel Tao
178c6422b7
Delete deprecated JSON quirks
2020-09-24 12:46:00 +10:00
Nigel Tao
3bb5af905f
Add more "typedef struct { ... } foo" names
2020-09-24 11:20:24 +10:00
Nigel Tao
46cd8105f4
wuffs gen -version=0.3.0-alpha.16
2020-09-23 22:04:21 +10:00
Nigel Tao
4f1d24c070
Add names to "typedef struct { ... } foo" types
2020-09-23 22:02:53 +10:00
Nigel Tao
aa46859ea4
wuffs gen -version=0.3.0-alpha.15
2020-09-23 16:23:25 +10:00
Nigel Tao
afe7f27ab7
Trim Eisel-Lemire powers-of-10 tables
...
This tracks the upstream github.com/lemire/fast_double_parser
On a mid-range x86_64 laptop, processing the 181 MiB citylots.json file
from github.com/zemirco/sf-city-lots-json:
$ g++ -O3 script/process-json-numbers.c
$ time ./a.out -parse-number-f64 < citylots.json
Before/After:
real 0m1.035s
real 0m1.003s
Binary size, before:
29544 gen/lib/c/clang-9-dynamic/wuffs-base-floatconv.lo
29648 gen/lib/c/clang-9-static/wuffs-base-floatconv.o
31192 gen/lib/c/gcc-dynamic/wuffs-base-floatconv.lo
31160 gen/lib/c/gcc-static/wuffs-base-floatconv.o
After:
27160 gen/lib/c/clang-9-dynamic/wuffs-base-floatconv.lo
27264 gen/lib/c/clang-9-static/wuffs-base-floatconv.o
28760 gen/lib/c/gcc-dynamic/wuffs-base-floatconv.lo
28760 gen/lib/c/gcc-static/wuffs-base-floatconv.o
2020-09-23 16:18:27 +10:00
Nigel Tao
b6d855210c
Use a formula to calculate Eisel-Lemire power-of-2
...
On a mid-range x86_64 laptop, processing the 181 MiB citylots.json file
from github.com/zemirco/sf-city-lots-json:
$ g++ -O3 script/process-json-numbers.c
$ time ./a.out -parse-number-f64 < citylots.json
Before/After:
real 0m0.992s
real 0m1.035s
2020-09-23 15:23:12 +10:00
Nigel Tao
cd4cbc9102
Tweak JSON trailing comment/new-line quirks
2020-09-22 23:03:49 +10:00
Nigel Tao
3e8cb4ebf8
wuffs gen -version=0.3.0-alpha.14
2020-09-21 11:24:39 +10:00
Nigel Tao
fa50f4de67
Add json QUIRK_ALLOW_TRAILING_COMMENT
2020-09-21 11:24:22 +10:00
Nigel Tao
2912ea8e28
Re-assign JSON quirk numbers
2020-09-21 10:30:46 +10:00
Nigel Tao
0987296352
Fix parse_number_f64_eisel_lemire comment typos
2020-09-15 22:25:33 +10:00
Nigel Tao
f2be4dd7cf
Trim private_implementation__powers_of_10 array
...
Binary size, before:
30344 gen/lib/c/clang-9-dynamic/wuffs-base-floatconv.lo
30488 gen/lib/c/clang-9-static/wuffs-base-floatconv.o
31992 gen/lib/c/gcc-dynamic/wuffs-base-floatconv.lo
31992 gen/lib/c/gcc-static/wuffs-base-floatconv.o
After:
29512 gen/lib/c/clang-9-dynamic/wuffs-base-floatconv.lo
29656 gen/lib/c/clang-9-static/wuffs-base-floatconv.o
31160 gen/lib/c/gcc-dynamic/wuffs-base-floatconv.lo
31160 gen/lib/c/gcc-static/wuffs-base-floatconv.o
2020-09-15 22:14:30 +10:00
Nigel Tao
8b45db0120
Narrow parse_number_f64_eisel_lemire's exp10 arg
...
On a mid-range x86_64 laptop, processing the 181 MiB citylots.json file
from github.com/zemirco/sf-city-lots-json:
$ g++ -O3 script/process-json-numbers.c
$ time ./a.out -parse-number-f64 < citylots.json
Before/After:
real 0m0.995s
real 0m0.968s
2020-09-15 21:58:57 +10:00
Nigel Tao
ddac2c50ee
Add more {parse,render}_number_f64 test cases
2020-09-15 21:17:33 +10:00
Nigel Tao
339119a5c1
Simplify parse_number_f64's use of __uint128_t
2020-09-14 12:43:29 +10:00
Nigel Tao
9f22b5ebf7
Fix wuffs_base__parse_number_f64 fast path comment
2020-09-11 09:10:08 +10:00
Nigel Tao
b55d539d94
Add links to jsonptr blog post
2020-09-11 08:11:02 +10:00
Nigel Tao
1710c81f13
Let wuffs_base__multiply_u64 use __uint128_t
2020-09-10 21:23:25 +10:00
Nigel Tao
0a141a7f1a
Put multiply_u64__output in little-endian order
2020-09-10 21:12:45 +10:00
Nigel Tao
3a34a1d7d2
Fix err assignment typo
...
Fixes #36
2020-09-10 12:11:45 +10:00
Nigel Tao
ba75ce9c5f
wuffs gen -version=0.3.0-alpha.13
2020-09-08 16:49:24 +10:00
Nigel Tao
57d47c633c
Fix etc__high_prec_dec__to_f64 shift amount
...
Shifting 0.299 left by 2 doesn't put us in [½ .. 1].
2020-09-08 16:43:31 +10:00
Nigel Tao
1210340e75
Add script/manual-test-parse-number-f64.cc
2020-09-07 23:11:07 +10:00
Nigel Tao
510c230cf4
Rename USE_FAST_DOUBLE_PARSER macro
2020-09-07 22:59:45 +10:00
Nigel Tao
a20a2bbe56
Fix "stand-alone C++" typo
2020-09-07 21:06:58 +10:00
Nigel Tao
4cb6cc5a0d
Fix missing echo for building example/jsonfindptrs
2020-09-04 09:26:09 +10:00
Nigel Tao
1812bdb9bd
Look for the wuffs root dir in CWD and ancestors
...
Updates #35
2020-09-03 22:08:05 +10:00
Nigel Tao
a325d7860f
wuffs gen -version=0.3.0-alpha.12
2020-08-30 21:15:40 +10:00