Commit Graph
777 Commits
Author SHA1 Message Date
Patrick Pelissier 81dbe7dd2e Renaming of the variables used for the example. 2017-10-02 07:49:54 +02:00
Patrick Pelissier a0948ed11a Fix a datarace detected by thread sanitizer. 2017-09-30 19:34:34 +02:00
Patrick Pelissier 9202fb2fea Parallelize santize command 2017-09-30 19:12:14 +02:00
Patrick Pelissier e9e7648bcd Add problem to solve detected by sanitiser. 2017-09-27 23:20:10 +02:00
Patrick Pelissier 3c9c52593a Fix problem with sanitizer. 2017-09-27 23:19:50 +02:00
Patrick Pelissier ca9f36b66c Fix issue detected by undefined sanitizer:
shift of signed integers is undefined.
2017-09-27 23:09:52 +02:00
Patrick Pelissier 8a1f24ca54 Fix issue detected by address sanitizer
(Read beyond and below the table allocation).
2017-09-27 22:57:08 +02:00
Patrick Pelissier f08fa110ea Fix issue for computing coverage. 2017-09-27 22:44:28 +02:00
Patrick Pelissier 03f674ca61 Move generic rule into generic rule section. 2017-09-26 23:09:01 +02:00
Patrick Pelissier 4aee001b1d Remove unused variables. 2017-09-26 23:07:12 +02:00
Patrick Pelissier bb2ca89a75 Rewrite the Makefile of the test so that it is compatible with parallel invocation. 2017-09-26 23:05:28 +02:00
Patrick Pelissier 4e96517bb2 Add init to 0 to unitialized memory as raised by scan-build. 2017-09-26 22:42:09 +02:00
Patrick Pelissier c0ccaf574d Add assertion missing raised by scan-build. 2017-09-26 22:41:48 +02:00
Patrick Pelissier 777db173ac Renaming test. 2017-09-26 22:26:07 +02:00
Patrick Pelissier 9ae9bc5126 Improve test suite. 2017-09-26 22:25:40 +02:00
Patrick Pelissier 2bdbd2f864 Fix issue with convertion from unsigned int to unsigned long:
missing cast to handle 1UL properly.
2017-09-26 22:24:53 +02:00
Patrick Pelissier 11e0d1618a Simplify the Makefile and make it compatible with parallel invocation. 2017-09-25 23:05:01 +02:00
Patrick Pelissier d19a5ad9de Fix warnings.
Update interface to avoid silent cast from size_t to unsigned int.
2017-09-24 23:05:46 +02:00
Patrick Pelissier a89db9ea56 Rewrite M_MAP like the others.
Increase limit to 52.
2017-09-22 22:16:28 +02:00
Patrick Pelissier 618c57d622 Fix naming convention 2017-09-22 22:11:47 +02:00
Patrick Pelissier 5b569e4811 Simplify M_MAP2 as it can reuse partially what has been done for M_MAP2B 2017-09-22 22:09:29 +02:00
Patrick Pelissier 021b70b83e Rewrite M_REDUCE2
(to be like the others)
2017-09-22 22:06:09 +02:00
Patrick Pelissier 89e02239de Add M_MAP_C & M_MAP2_C 2017-09-22 21:53:13 +02:00
Patrick Pelissier 6b55f5d4a3 Improve test suite. 2017-09-21 22:37:28 +02:00
Patrick Pelissier 9a1a0ebec3 Increase M_INC & M_DEC & M_NOTEQUAL & M_RET_ARGn to 52
Add M_SKIP, M_KEEP & M_MID macros.
Define M_RET_ARG

Rewrite M_SEQ using M_MID

Rewrite M_ADD & M_SUB avoiding recursivity (much faster).
2017-09-21 22:19:05 +02:00
Patrick Pelissier c79626225b Rewrite M_REDUCE to be much faster.
Rewrite M_SEQ to be much faster.
Change interface of M_SEQ as we can easily apply M_MAP / M_MAP2 to further apply macro.
2017-09-20 23:40:22 +02:00
Patrick Pelissier 793f834a56 Rewrite M_MAP2B using another trick which is MUCH faster for compiler.
Reduce compilation time of bench-mlib from 5s to 1s!
2017-09-18 23:03:42 +02:00
Patrick Pelissier 1fa105f11a Improve the test suite. 2017-09-18 23:03:05 +02:00
Patrick Pelissier f75bd05a02 Fix issue with dict equal_p 2017-09-17 11:29:00 +02:00
Patrick Pelissier b998e884ce Change limb from int to long to get more efficient. 2017-09-17 10:42:35 +02:00
Patrick Pelissier 7e19d1863c Add note 2017-09-16 19:01:06 +02:00
Patrick Pelissier 0b44a55b6a Replace method EXPECTED_SIZE by INC_ALLOC so that all the way of increasing
the size in case of reallocation can be configured and not only the minimum
size.
2017-09-16 18:46:22 +02:00
Patrick Pelissier 95f467f4be Fix potential bug in case of ill-formed serialized container. 2017-09-16 13:30:09 +02:00
Patrick Pelissier 2e564088b0 Simplify the inclusion of headers. 2017-09-16 10:14:45 +02:00
Patrick Pelissier 243bb91345 Add new generic library. 2017-09-16 09:10:00 +02:00
Patrick Pelissier 1930bdeac1 _DEF macros checks if a global oplist is register if there is no one
given in the macro call. If it founds one, it will be it instead
of M_DEFAULT_OPLIST.
2017-09-16 08:31:22 +02:00
Patrick Pelissier 67b690bac8 Update comment. 2017-09-14 23:05:51 +02:00
Patrick Pelissier e80a9b8bb3 Add bitset_t as a global oplist. 2017-09-14 23:02:33 +02:00
Patrick Pelissier ea60cd2ae6 Fix issue of write after allocated buffer. 2017-09-14 23:00:40 +02:00
Patrick Pelissier 4c688c1004 Register global oplist for string_t. 2017-09-14 22:56:35 +02:00
Patrick Pelissier 402c0a86e0 Add test for REDUCE2 & SEQ 2017-09-13 23:50:38 +02:00
Patrick Pelissier 977e857ae9 Remove SAFE_C 2017-09-13 23:50:29 +02:00
Patrick Pelissier 52f4f35e64 Simplification 2017-09-11 23:24:19 +02:00
Patrick Pelissier 6c71265c8b Minor cleanup 2017-09-11 22:54:31 +02:00
Patrick Pelissier a6a89f269f Simplify code. 2017-09-11 22:49:48 +02:00
Patrick Pelissier 914661602c Increase compilation time (from 12s to 4.5s) 2017-09-10 21:28:01 +02:00
Patrick Pelissier d7c4ca1de5 Add support for global oplist.
Global oplists are global macro defined as M_OPL_##type

Add support of global oplist for macro M_EACH & M_LET.
Partial fix #9
2017-09-10 10:04:39 +02:00
Patrick Pelissier fc7b1516e2 Replace getc by fgetc 2017-09-09 23:43:26 +02:00
Patrick Pelissier 4d9405d564 Improve M_OPLIST_P computation. 2017-09-09 23:36:01 +02:00
Patrick Pelissier 4eda4a19fa Add VSTR reference. 2017-09-07 21:39:08 +02:00