Nigel Tao
03a87ea3ef
Add jsonptr check for to-be-extended token length
2020-07-21 23:29:26 +10:00
Nigel Tao
e511b8b891
Fix doc/note/tokens.md bit assignment chart
2020-07-21 23:22:10 +10:00
Nigel Tao
900926b464
Tweak std/cbor token bits
2020-07-21 23:10:16 +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
51a38295b6
Let jsonptr accept inf and NaN
2020-07-19 22:47:34 +10:00
Nigel Tao
7cb7654a4d
Re-organize jsonptr.cc
2020-07-19 22:19:04 +10:00
Nigel Tao
d191a3fc5f
Have std/cbor parse text strings
2020-07-19 22:17:48 +10:00
Nigel Tao
3c8589b6e9
Let jsonptr output CBOR metadata as JSON comments
2020-07-19 21:49:00 +10:00
Nigel Tao
c4fa8e27c0
Rename the "Eisel" algorithm to "Eisel-Lemire"
2020-07-18 17:35:13 +10:00
Nigel Tao
af75772cc2
Have std/cbor parse byte strings
2020-07-18 17:27:11 +10:00
Nigel Tao
f52e081f1e
Add WUFFS_BASE__X64__BYTE_LENGTH__MAX_INCL comment
2020-07-16 21:30:01 +10:00
Nigel Tao
664f8431d2
Have std/cbor parse negative integers
2020-07-16 21:25:14 +10:00
Nigel Tao
fca9a36252
Shrink cbor.decoder.decode_tokens coroutine state
2020-07-15 14:16:42 +10:00
Nigel Tao
31674f9bd2
Let skip_u32_fast take non-constant arguments
2020-07-15 14:10:43 +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
168f60a781
Add example/jsonptr -output-format=cbor flag
2020-07-14 15:57:05 +10:00
Nigel Tao
cd183f92b0
Fix jsonptr start_of_token_chain initial value
2020-07-14 12:11:05 +10:00
Nigel Tao
ecadf72e6b
Rename some example/json* flags
2020-07-13 08:25:59 +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
b14e3eae9f
Have dumbindent preserve indent on the first line
2020-07-12 09:29:48 +10:00
Nigel Tao
229a0c5af4
wuffs gen -version=0.3.0-alpha.10
2020-07-11 13:18:58 +10:00
Nigel Tao
0a9075f81c
Move test_wuffs_strconv_parse_number_f64_options
2020-07-11 13:17:58 +10:00
Nigel Tao
37bc8cdaa5
Refactor parse_number_f64 related tests
2020-07-11 13:16:00 +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
fcb6416c16
Add script/extract-cbor-rfc-7049-examples.go
2020-07-10 22:56:47 +10:00
Nigel Tao
4ed17ada9f
wuffs gen -version=0.3.0-alpha.9
2020-07-10 20:35:06 +10:00
Nigel Tao
e722bb095c
Fix #ifdef guarding the use of __uint128_t
2020-07-10 20:33:09 +10:00
Nigel Tao
bfd0655944
wuffs gen -version=0.3.0-alpha.8
2020-07-10 12:52:53 +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
c766bb72d6
Have example/jsonetc read and write extra commas
2020-07-09 13:15:36 +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
27766aedf9
Let process-json-numbers use fast_double_parser
2020-07-09 10:59:54 +10:00
Nigel Tao
b15a0fc349
Add more parse_number_f64_eisel comments
2020-07-08 10:52:38 +10:00