Nigel Tao
8aac6767bb
Add example/jsonfindptrs -query=STR flag
2020-08-12 23:18:37 +10:00
Nigel Tao
ab6f895007
Extract WUFFS_AUX__DECODE_JSON__GET_THE_NEXT_TOKEN
2020-08-11 22:10:46 +10:00
Nigel Tao
da3504833e
Have Decode{Cbor,Json} quirks default to empty
2020-08-11 13:46:50 +10:00
Nigel Tao
62c4feb268
Let wuffs_aux::DecodeJson use BACKSLASH_X_AS_BYTES
2020-08-10 15:22:05 +10:00
Nigel Tao
6d81764e14
Tweak wuffs_aux::DecodeJsonCallbacks
2020-08-09 23:15:41 +10:00
Nigel Tao
0b7eaf291b
Add example/cbor-to-json
2020-08-09 23:03:42 +10:00
Nigel Tao
934136b09c
Add token_buffer.{read,writ}er_slice methods
2020-08-06 23:51:13 +10:00
Nigel Tao
82a96cb139
Rename token_buffer.{read,writ}er_available
2020-08-06 23:41:36 +10:00
Nigel Tao
724ce98540
Update some refs to the old aux directory name
2020-08-06 09:17:54 +10:00
Mike Kaufman
c8c2144579
updating refs to new auxiliary folder
2020-08-05 09:16:35 -07:00
Mike Kaufman
b66cf6b4b1
rename internal/cgen/aux to internal/cgen/auxiliary
2020-08-05 09:11:03 -07:00
Nigel Tao
6ea09e0de4
Remove #ifdef MODULE_ETC guards for aux headers
2020-08-05 22:54:53 +10:00
Nigel Tao
cf6c578973
Add aux library
2020-08-04 23:43:38 +10:00
Nigel Tao
a4f2bbb249
Update cgen/base run "go generate" comment
2020-07-28 14:15:24 +10:00
Nigel Tao
cb130ba83e
Re-organize internal/cgen/data's base files list
2020-07-28 14:09:50 +10:00
Nigel Tao
d6a10dfe8a
Add io_buffer.{read,writ}er_slice methods
2020-07-27 11:47:47 +10:00
Nigel Tao
a9668877b2
Fix -Werror=conversion in available_valid_utf_8
2020-07-25 00:01:14 +10:00
Nigel Tao
70c42bff10
Break std/cbor string tokens on UTF-8 boundaries
2020-07-22 21:50:51 +10:00
Nigel Tao
702c7b299f
Let wuffs_base__utf_8__etc take ptr-to-const-u8
2020-07-22 15:42:54 +10:00
Nigel Tao
850dc18d16
Have std/cbor produce extended inline integers
2020-07-21 22:52:04 +10:00
Nigel Tao
c9d4e34dfc
Split ETC__VBC__INLINE_INTEGER into {,un}signed
2020-07-21 15:31:49 +10:00
Nigel Tao
c4fa8e27c0
Rename the "Eisel" algorithm to "Eisel-Lemire"
2020-07-18 17:35:13 +10:00
Nigel Tao
f52e081f1e
Add WUFFS_BASE__X64__BYTE_LENGTH__MAX_INCL comment
2020-07-16 21:30:01 +10:00
Nigel Tao
4e193599ac
Add std/cbor
2020-07-15 14:08:37 +10:00
Nigel Tao
e917884d6c
Add wuffs_base__base_16__encodeN
2020-07-14 16:35:13 +10:00
Nigel Tao
56d9096f81
Fix -Werror=conversion in from_f64_to_u{16,32}
2020-07-12 21:11:49 +10:00
Nigel Tao
a3931d5215
Rename IEEE 754 from_f64_to_u{16,32} functions
2020-07-12 21:06:44 +10:00
Nigel Tao
0d90b270ea
Reorganize internal/cgen/base/strconv-public.h
2020-07-12 17:03:53 +10:00
Nigel Tao
7bf7cf28b9
Add IEEE 754 from_f64_to_u{16,32} functions
2020-07-12 17:01:14 +10:00
Nigel Tao
0899b82c42
Add IEEE 754 from_u{16,32}_to_f64 functions
2020-07-12 13:23:04 +10:00
Nigel Tao
4d449dc663
Rename ieee_754_bit_representation functions
2020-07-12 11:00:47 +10:00
Nigel Tao
c5c9885db4
Add PARSE_NUMBER_XXX__ALLOW_UNDERSCORES
2020-07-11 13:10:14 +10:00
Nigel Tao
e82bc8ec7b
Add PARSE_NUMBER_XXX__ALLOW_MULTIPLE_LEADING_Z...
2020-07-11 12:57:25 +10:00
Nigel Tao
4d61a056e0
Add PARSE_NUMBER_FXX__REJECT_INF_AND_NAN
2020-07-11 12:34:40 +10:00
Nigel Tao
e0c5de9d8d
Add PARSE_NUMBER_FXX__DECIMAL_SEPARATOR_IS_A_COMMA
2020-07-11 12:14:39 +10:00
Nigel Tao
e722bb095c
Fix #ifdef guarding the use of __uint128_t
2020-07-10 20:33:09 +10:00
Nigel Tao
f9a90f1c5e
Add explicit cast to size_t in base_64 codec
2020-07-10 12:45:16 +10:00
Nigel Tao
bff01d7ea8
Add comment linking to previous commit's numbers
2020-07-10 12:15:09 +10:00
Nigel Tao
18449ad75d
Optimize 128-bit muls in parse_number_f64_eisel
...
Processing citylots.json from github.com/zemirco/sf-city-lots-json
$ cc -O3 script/process-json-numbers.c
$ time ./a.out --parse-number-f64 < citylots.json
gcc 9.3 Before/After
real 0m0.638s
real 0m0.609s
clang 9.0 Before/After
real 0m0.692s
real 0m0.685s
x86_64 Broadwell desktop CPU.
2020-07-10 12:11:26 +10:00
Nigel Tao
74d4af66e4
Refactor 128-bit muls in parse_number_f64_eisel
2020-07-10 11:27:17 +10:00
Nigel Tao
15cc8502b1
Add token enums for base-32 codecs
2020-07-09 21:23:38 +10:00
Nigel Tao
ca55cdbef0
Rename {f64,i64}conv to {float,int}conv
2020-07-09 21:15:36 +10:00
Nigel Tao
e0ca5a4c3c
Have base_16 codec return a transform__output
2020-07-09 21:09:19 +10:00
Nigel Tao
309a5ba231
Add base_64 codec to wuffs_base
2020-07-09 20:42:17 +10:00
Nigel Tao
540a3b51e0
Run "wuffs gen" missed for b15a0fc3
...
Commit b15a0fc349 is "Add more
parse_number_f64_eisel comments". I forgot to run "wuffs gen" after
updating a comment.
2020-07-09 11:18:49 +10:00
Nigel Tao
b15a0fc349
Add more parse_number_f64_eisel comments
2020-07-08 10:52:38 +10:00
Nigel Tao
2a7e1ed175
Factor f64conv-submodule.c into code and data
2020-07-07 21:50:06 +10:00
Nigel Tao
6365fa30f4
Tweak WUFFS_BASE__RENDER_NUMBER_ETC bit values
2020-07-07 21:42:09 +10:00
Nigel Tao
6b7ce30e32
Add wuffs_base__parse_number_xxx options arg
2020-07-07 16:19:46 +10:00
Nigel Tao
832edf7227
Remove the medium_prec_bin type
...
It's obsolete now that we have an Eisel algorithm implementation.
Binary size, before:
29416 gen/lib/c/clang-5.0-dynamic/wuffs-base-f64conv.lo
29688 gen/lib/c/clang-5.0-static/wuffs-base-f64conv.o
31792 gen/lib/c/gcc-dynamic/wuffs-base-f64conv.lo
31792 gen/lib/c/gcc-static/wuffs-base-f64conv.o
After:
28744 gen/lib/c/clang-5.0-dynamic/wuffs-base-f64conv.lo
28968 gen/lib/c/clang-5.0-static/wuffs-base-f64conv.o
31176 gen/lib/c/gcc-dynamic/wuffs-base-f64conv.lo
31176 gen/lib/c/gcc-static/wuffs-base-f64conv.o
Processing citylots.json 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.031s
real 0m0.975s
$ time ./a.out < citylots.json
Before/After:
real 0m0.807s
real 0m0.729s
2020-07-07 16:07:35 +10:00