Nigel Tao
11a6819be9
Add a deflate distance-code-31 test
2019-02-02 13:04:09 +11:00
Nigel Tao
670b45be53
Add some "horizontal rule" comment lines
2019-02-02 08:10:08 +11:00
Nigel Tao
109d6f04bc
Add std/deflate many_big_read benchmarks
2019-01-13 10:08:40 +11:00
Nigel Tao
16e97281e2
Rename some decode methods to decode_io_writer
2019-01-12 10:29:41 +11:00
Nigel Tao
11d7629efd
Fix a "release/c/etc.c" comment typo
2018-12-29 15:20:38 +11:00
Nigel Tao
dd94ad3821
Rename z variable to status, in C code
2018-12-28 16:14:03 +11:00
Nigel Tao
04c91f1410
Generate .c files instead of .h files
...
The files' contents haven't changed (other than some relative #include's
that refer to other .c files).
Some build systems have difficulty recognizing .h files as things to be
compiled, instead of just things referred to by things to be compiled.
2018-12-22 15:29:00 +11:00
Nigel Tao
e497b38da0
Avoid test names being prefixes of other names
2018-12-15 13:58:22 +11:00
Nigel Tao
3854ce3e89
Let test binaries run from any dir in the repo
...
Also spin out generate.WuffsRoot into its own package.
2018-11-03 08:46:31 +11:00
Nigel Tao
6cc954d7e1
Have tests return a "const char*" status
2018-09-22 08:43:56 +10:00
Nigel Tao
6fed251b40
Split an io_buffer's fields into data and meta
2018-09-15 08:45:50 +10:00
Nigel Tao
b840c80040
Make the status type a const char*, not a struct
2018-08-12 16:05:14 +10:00
Nigel Tao
2a32a86a6c
Make the status type a struct, not an int32_t
2018-08-11 13:27:29 +10:00
Nigel Tao
fd43e777bc
Have check_wuffs_version return a status code
2018-08-05 22:29:54 +10:00
Jimmy Casey
3c50ada2c6
Fixed Spelling.
2018-07-26 17:12:19 +00:00
Nigel Tao
bc82e51371
Rename wuffs-unsupported-snapshot.h
2018-07-21 09:20:10 +10:00
Nigel Tao
a0bafff465
Ship as a "single file C library"
2018-07-14 08:59:36 +10:00
Nigel Tao
6183aba9d7
Capitalize the $CC and $CXX environment variables
2018-06-30 10:43:26 +10:00
Nigel Tao
50a955317a
Remove the WUFFS_FOO__STATUS_ETC names
2018-06-10 22:05:06 +10:00
Nigel Tao
d770e879ab
Remove the wuffs_foo__status types
2018-06-10 21:40:43 +10:00
Nigel Tao
43bb14e886
Redo the encoding of error codes
2018-06-10 21:22:41 +10:00
Nigel Tao
5b08ad2ba6
Change the order of check_wuffs_version args
...
This puts the self_ptr, self_len args next to each other.
2018-05-29 21:59:50 +10:00
Nigel Tao
87ab36f8c4
Have check_wuffs_version take the sizeof receiver
...
Also rename foo__initialize to foo__check_wuffs_version.
2018-05-29 14:20:27 +10:00
Nigel Tao
227f8610fc
Rename some testlib set_limit methods
2018-05-11 13:49:47 +10:00
Nigel Tao
a2044fdaa6
Drop the ".c" in "std/gif.c" test output
2018-05-05 11:38:31 +10:00
Nigel Tao
ba98b04307
Add an iterscale flag
2018-05-04 17:17:59 +10:00
Nigel Tao
b9b398dc9a
Remove obsolete limit implementation
2018-05-02 20:29:39 +10:00
Nigel Tao
4e55710afc
Call the set_limit method
2018-04-28 14:36:16 +10:00
Nigel Tao
8827e222b1
Add wuffs_base__io_buffer__{reader,writer} funcs
2018-04-27 20:54:44 +10:00
Nigel Tao
97aab37462
Rename buf1, reader1, etc to io_buffer, io_reader
...
Also remove the unused Buf1, Buf2 and Usize tokens.
2018-04-05 20:49:48 +10:00
Nigel Tao
9cc6964c30
Stub out a new std/gzip package
2018-03-28 10:22:46 +11:00
Nigel Tao
061729f7b2
Remove redundant crc32 benchmarks
2018-03-25 22:02:13 +11:00
Nigel Tao
a2949fe28d
Add Adler32 and CRC32/IEEE tests for pi's digits
2018-03-25 21:54:07 +11:00
Nigel Tao
4675efdcc5
Fix deflate decode when the distance is 32768
2018-03-23 12:49:42 +11:00
Nigel Tao
4806f6160d
Run clang-format-5.0
2018-03-23 09:51:13 +11:00
Nigel Tao
f11e1f97c6
Add deflate-distance-32768 test case
2018-03-21 12:32:51 +11:00
Nigel Tao
d1399fac19
Rename test/testdata to test/data
2018-03-16 10:48:33 +11:00
Nigel Tao
4877279ee7
Be able to test and bench the miniz library
...
For the record, benchstat numbers for 'old' being zlib-the-library and
'new' being miniz are below. Neither 'old' or 'new' is Wuffs code.
name old speed new speed delta
mimic_deflate_decode_1k/clang 217MB/s ± 1% 175MB/s ± 1% -19.54% (p=0.008 n=5+5)
mimic_deflate_decode_10k/clang 262MB/s ± 2% 222MB/s ± 0% -15.34% (p=0.008 n=5+5)
mimic_deflate_decode_100k/clang 281MB/s ± 1% 262MB/s ± 0% -6.86% (p=0.008 n=5+5)
mimic_deflate_decode_1k/gcc 220MB/s ± 1% 169MB/s ± 0% -23.12% (p=0.008 n=5+5)
mimic_deflate_decode_10k/gcc 267MB/s ± 0% 266MB/s ± 0% ~ (p=0.222 n=5+5)
mimic_deflate_decode_100k/gcc 283MB/s ± 0% 282MB/s ± 1% ~ (p=0.690 n=5+5)
mimic_zlib_decode_10k/clang 243MB/s ± 1% 197MB/s ± 1% -18.68% (p=0.008 n=5+5)
mimic_zlib_decode_100k/clang 287MB/s ± 1% 229MB/s ± 1% -20.13% (p=0.008 n=5+5)
mimic_zlib_decode_10k/gcc 243MB/s ± 0% 240MB/s ± 6% ~ (p=0.730 n=5+5)
mimic_zlib_decode_100k/gcc 288MB/s ± 1% 260MB/s ± 0% -9.51% (p=0.008 n=5+5)
2017-12-15 11:33:35 +11:00
Nigel Tao
afb879b000
Rename deflate-related testdata
2017-12-04 10:49:11 +11:00
Nigel Tao
8e2255916e
Drop the "flate_" in "deflate.flate_decoder"
2017-12-04 10:35:08 +11:00
Nigel Tao
1388f84e5c
Rename std/flate to std/deflate
2017-12-04 10:27:48 +11:00