Commit Graph
467 Commits
Author SHA1 Message Date
Nigel Tao ad1cff3921 Add tell_me_more? mechanism 2020-05-12 11:12:39 +10:00
Nigel Tao 873c6b400a Add alloc functions 2020-04-12 20:34:33 +10:00
Nigel Tao 496e88b6c5 Remove wuffs_base__token__link_prev 2020-04-09 22:11:08 +10:00
Nigel Tao 478d1b817c Add doc/note/tokens.md 2020-04-08 23:31:18 +10: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 64dbd00b07 Rename wuffs_base__make_etc_buffer_{read,writ}er 2020-04-02 22:21:36 +11:00
Nigel Tao 462f86675d Add an "extended token" concept 2020-04-02 11:20:45 +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 59eab68360 Fix -Werror=conversion in hexadecimal__decodeN 2020-03-24 17:22:17 +11:00
Nigel Tao d7c72373f3 Add std/json quirk_allow_inf_nan_numbers 2020-03-24 13:58:38 +11:00
Nigel Tao c6b2aded30 Add wuffs_base__hexadecimal__decodeN 2020-03-20 22:48:06 +11:00
Nigel Tao 9fd96e8e44 Add io_buffer and token_buffer methods 2020-03-17 13:38:37 +11:00
Nigel Tao c3ca77a539 Add WUFFS_BASE__TOKEN__VBD__NUMBER__FORMAT_ETC 2020-03-11 12:06:50 +11:00
Nigel Tao 499ca132f6 Add wuffs_base__parse_number_f64 2020-03-11 11:41:32 +11:00
Nigel Tao 2178dcd4da Fix wuffs_base__utf_8__encode conversion warning 2020-03-04 22:34:11 +11:00
Nigel Tao 757a4bd68c Add more test_strconv_parse_number_u64 test cases 2020-03-04 22:18:56 +11:00
Nigel Tao b9ad34fad3 Add wuffs_base__utf_8__encode 2020-03-03 12:44:01 +11:00
Nigel Tao 43f0a87a6d Test std/json emit pending strings on bad UTF-8 2020-03-02 13:59:46 +11:00
Nigel Tao 85fba7f82b Tweak wuffs_base__token bitmask assignments again 2020-02-29 16:28:06 +11:00
Nigel Tao d1c928a1ed Have tokens include explicit link bits 2020-02-29 10:46:44 +11:00
Nigel Tao 809220e6cc Add wuffs_base__utf_8__next 2020-02-27 14:41:45 +11:00
Nigel Tao 1ad5cfac4d Make wuffs_base__{load,store}_uNNxe public 2020-02-27 10:58:14 +11:00
Nigel Tao 2e62fa369a Fix wuffs_base__parse_number_i64 warning 2020-02-26 14:37:33 +11:00
Nigel Tao 9d4eeb7b54 Tweak wuffs_base__token bitmask assignments again 2020-02-26 11:36:30 +11:00
Nigel Tao 2278a47cc6 Fix wuffs_base__parse_number_i64 goto-crosses-init 2020-02-26 10:22:24 +11:00
Nigel Tao 6d698a3a47 Add wuffs_base__parse_number_i64 2020-02-25 13:07:22 +11:00
Nigel Tao a9d1488674 Tweak wuffs_base__token bitmask assignments 2020-02-25 12:12:31 +11:00
Nigel Tao b1af7b9b41 Add base/strconv-impl.c table column comments 2020-02-23 09:45:48 +11:00
Nigel Tao 9f7a250cf2 Define WUFFS_BASE__TOKEN__VBC__ETC macros 2020-02-23 09:42:02 +11:00
Nigel Tao b2dd7d952c Have io_reader.match7 check io_reader.is_closed 2020-02-22 22:58:48 +11:00
Nigel Tao df62fe5846 Fix hexadecimal_digits typo 2020-02-21 14:14:57 +11:00
Nigel Tao c92c0f50e4 Have std/json decode null, false and true 2020-02-21 11:16:27 +11:00
Nigel Tao 70db96ac6d Add wuffs_base__parse_number_u64 2020-02-20 22:10:15 +11:00
Nigel Tao 36857984c7 Add wuffs_base__token methods 2020-02-12 13:51:58 +11:00
Nigel Tao 737e31ff3a Add tokens 2020-02-11 12:02:58 +11:00
Nigel Tao f6f2ac4206 Have std/bmp support 32 bits per pixel color 2020-02-09 16:11:54 +11:00
Nigel Tao 8d29cb15ce Re-order some image-impl.c multiplies 2020-02-08 09:11:23 +11:00
Nigel Tao e6cc2fe8f0 Implement bmp.decoder.decode_frame 2020-02-07 16:27:04 +11:00
Nigel Tao 4ab2de9b95 Add wuffs_base__empty_{range,rect}_xx_uxx 2020-02-05 17:14:15 +11:00
Nigel Tao a737a75dd3 Refactor wuffs_base__pixel_swizzler__prepare 2020-01-28 11:25:16 +11:00
Nigel Tao 67b8c79ce8 Fix "-Werror=conversion" build failure re BGR_565 2020-01-28 10:52:45 +11:00
Nigel Tao 7527103ec4 Clean up image-impl.c's loop_unroll_count 2020-01-28 10:49:48 +11:00
Nigel Tao 0e833f909a Add WUFFS_BASE__PIXEL_FORMAT__BGR_565 2020-01-28 10:32:40 +11:00
Nigel Tao 3a0b3104b0 Add wuffs_base__pixel_buffer__set_color_u32_at 2020-01-25 09:42:26 +11:00
Nigel Tao 557c2b7998 Add wuffs_base__pixel_buffer__color_u32_at 2020-01-24 21:39:19 +11:00
Nigel Tao 47ce6ea296 Add wuffs_base__pixel_swizzler__func typedef 2020-01-24 12:20:06 +11:00
Nigel Tao 86a2a62313 Add "#unsupported pixel swizzler option" error 2020-01-24 12:01:51 +11:00