Commit Graph
316 Commits
Author SHA1 Message Date
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
Patrick Pelissier 4c75569a20 Fix issue with stricter compiler with stdatomic. 2017-04-08 11:51:18 +02:00
Patrick Pelissier 7d6f1861c9 Remove use of atomic_uint_fast8_t:
this type may not be available on all targets.
Use plain atomic_uchar instead.

Use of atomic_load to read an atomic_uchar.

Remove const from prototype since atomic_load
doesn't support const pointers.
2017-04-08 11:21:30 +02:00
Patrick Pelissier 6e19864d44 Fix wrong strict usage of atomic (missing atomic_init & atomic_load). 2017-04-08 11:09:06 +02:00
Patrick Pelissier 1e729940c4 Fix issue in initializing an atomic_int with an int
(not supported by C11).
2017-04-08 11:03:59 +02:00
Patrick Pelissier 8d26ff5c00 Add comment 2017-04-08 11:03:38 +02:00
Patrick Pelissier 7b543fb53a Add note. 2017-04-07 17:52:51 +02:00
Patrick Pelissier 15e8a7b7d7 Fix error : doesn't allocate not enought memory! 2017-04-07 17:41:22 +02:00
Patrick Pelissier 4861f4d811 Fix issue with C++ 2017-04-07 17:41:13 +02:00
Patrick Pelissier c2b2704d23 Fix issue with C++ 2017-04-07 17:35:48 +02:00
Patrick Pelissier 5418856d5e Make (justified) warning silent with clang.
(Already explained in the note)
2017-04-07 17:32:50 +02:00
Patrick Pelissier 898d117ceb Fix issue with C++ (missing brackets) 2017-04-07 17:29:50 +02:00
Patrick Pelissier 736e0550ca Simplify & fix issue for C++ 2017-04-07 17:28:34 +02:00