Patrick Pelissier
adf15bca6f
Rewrite code to use dict_t & dict_it_t (clearer)
...
Add missing contracts.
2017-04-23 18:53:47 +02:00
Patrick Pelissier
e2f0955385
Do the same for intrusive list.
2017-04-23 18:39:31 +02:00
Patrick Pelissier
f1b38432aa
More tests.
2017-04-23 10:13:38 +02:00
Patrick Pelissier
63d311a85b
Add more tests.
2017-04-23 10:12:30 +02:00
Patrick Pelissier
22e9e52b13
Add more tests.
2017-04-23 10:10:57 +02:00
Patrick Pelissier
22dbf2bd9d
Simplify the writing of the list type and list it type to make reading easier.
2017-04-23 10:07:21 +02:00
Patrick Pelissier
b085b97c20
Define & use ARRAYI_CONTRACT for proper contract checking.
2017-04-23 09:58:58 +02:00
Patrick Pelissier
206f797e8f
Rewrite the array to simplify the code and make it easier to read.
2017-04-23 09:42:40 +02:00
Patrick Pelissier
a6ef9e953c
Update README
2017-04-23 09:42:29 +02:00
Patrick Pelissier
82a6bc7e72
Add CMP for CSTR
2017-04-22 18:08:56 +02:00
Patrick Pelissier
5c23fd64cc
Add M_CSTR_OPLIST oplist for const char *
2017-04-22 11:18:10 +02:00
Patrick Pelissier
6d0f063923
Add mempool benchmark.
2017-04-20 23:11:55 +02:00
Patrick Pelissier
6bd5770b3a
Speed up compilation speed a few by reducing the expansion of the some very used expressions.
...
Remove wrong assertion (length can be 0 for empty string).
2017-04-19 22:38:49 +02:00
Patrick Pelissier
9df884080d
Improve Makefile for older version of GCC.
2017-04-19 22:38:31 +02:00
Patrick Pelissier
618bc24bde
Improve the test to be hash independent.
2017-04-19 22:38:12 +02:00
Patrick Pelissier
b60cc58980
Change FNV1A Meiyan hash by FNV1A Jesteress
2017-04-18 23:21:53 +02:00
Patrick Pelissier
02be3b6d69
Remove internal dict macros for core macro.
2017-04-17 19:19:58 +02:00
Patrick Pelissier
dd012a504b
Fix test
2017-04-17 00:19:19 +02:00
Patrick Pelissier
f829dcdfe6
Add more tests.
2017-04-17 00:07:37 +02:00
Patrick Pelissier
6bcc54dd45
Fix spelling
2017-04-17 00:07:08 +02:00
Patrick Pelissier
29b23cae98
Add specialization for HASH functions if C11.
2017-04-16 15:07:10 +02:00
Patrick Pelissier
c6482ff062
Change hash function for klib bench and use the right hash function for 64 bits.
2017-04-16 14:16:07 +02:00
Patrick Pelissier
d5e235ed8e
Generalize clear default into nothing default.
2017-04-16 14:15:33 +02:00
Patrick Pelissier
d589d3135f
Update doc
2017-04-14 16:52:01 +02:00
Patrick Pelissier
dfed23eeaa
Update doc
2017-04-14 16:49:05 +02:00
Patrick Pelissier
f57968fcd8
Add reserve for bitset
...
Fix bug in resize for bitset
2017-04-14 11:46:24 +02:00
Patrick Pelissier
418d868b1d
Remove shrink_to_fit which is useless as reserve performs its role now too.
2017-04-14 11:32:17 +02:00
Patrick Pelissier
a1dec4dfe9
Update doc
2017-04-14 11:31:59 +02:00
Patrick Pelissier
608caaf9b9
Add new benchmark.
2017-04-14 11:21:32 +02:00
Patrick Pelissier
f69130bb06
Add reserve operation.
2017-04-14 01:24:22 +02:00
Patrick Pelissier
da5691da40
Fix bug in function (invert i & j)
2017-04-13 23:05:13 +02:00
Patrick Pelissier
5f801b0312
Add santize static analyse
2017-04-13 23:04:47 +02:00
Patrick Pelissier
a5dac33524
Add more assertions.
2017-04-13 22:47:39 +02:00
Patrick Pelissier
d5bd3674d8
Make it cleaner for static analysis:
...
add more assertions.
2017-04-13 22:45:27 +02:00
Patrick Pelissier
51f4115b7d
Rewrite the test to make it cleaner for static analysis.
2017-04-13 22:44:52 +02:00
Patrick Pelissier
e901f54723
Reformat Makefile & add scan-build.
2017-04-13 22:44:28 +02:00
Patrick Pelissier
bc9afdabed
Add a test
2017-04-13 22:16:44 +02:00
Patrick Pelissier
2523e53a72
Delete also asm file
2017-04-13 21:54:50 +02:00
Patrick Pelissier
72c5c3f371
Replace stdatomic.h (C11 standard compliant header) by a custom one
...
to increase C++ compatibility as stdatomic.h doesn't work in C++!
(I would like to thanks the one(s) who thought it was a good idea
***not*** to include stdatomic.h -and thread.h- in the C++ standard!)
2017-04-13 21:50:16 +02:00
Patrick Pelissier
c433df06c0
Micro-optimisation.
2017-04-13 21:14:27 +02:00
Patrick Pelissier
30c5d99ca7
Fix indentation
2017-04-13 21:14:16 +02:00
Patrick Pelissier
2a78ba999a
Add massif data
2017-04-13 21:13:49 +02:00
Patrick Pelissier
fd286bd31c
Add more tests.
2017-04-12 22:43:15 +02:00
Patrick Pelissier
3db02c64fa
Fix issue with even stricter atomic implementation
...
(without even the set operator for atomics).
2017-04-10 23:04:34 +02:00
Patrick Pelissier
5e0c51e00c
Add test of dict over string.
2017-04-08 22:28:24 +02:00
Patrick Pelissier
4a9a8ebd3c
Improve documentation.
2017-04-08 21:07:39 +02:00
Patrick Pelissier
1898e7e793
Improve computation of number of elements per mempool
...
so that we don't go above 16K, and lost a complete
page just for 8 bytes!
2017-04-08 20:57:34 +02:00
Patrick Pelissier
45d2b6cea5
Fix spelling
...
:
2017-04-08 20:56:51 +02:00
Patrick Pelissier
36408144dd
Update doc
2017-04-08 12:03:27 +02:00
Patrick Pelissier
06b3f49855
Add missing const cast
2017-04-08 12:03:12 +02:00