Patrick Pelissier
dc719cf329
Update comment
2017-10-25 22:07:13 +02:00
Patrick Pelissier
ab5a3ce31b
Clean up
2017-10-25 22:06:03 +02:00
Patrick Pelissier
325d118260
Clean up
2017-10-25 22:01:30 +02:00
Patrick Pelissier
a07d71274a
Fix issue with massive parallele check
2017-10-25 21:46:54 +02:00
Patrick Pelissier
cefa0ac589
Minor fix
2017-10-22 22:50:36 +02:00
Patrick Pelissier
aaa8efb6e3
Add policy INIT_MOVE for queue MPMC.
2017-10-22 22:49:25 +02:00
Patrick Pelissier
8914d336a0
dict_ref & dict_cref returns a pointer to struct pair_s instead of pair_t (which
...
is an array of struct pair_s).
This will break API compatibility. However:
it makes the user code cleaner as a level of indirection is removed.
it uniformizes with the OA dict version
2017-10-18 23:25:39 +02:00
Patrick Pelissier
8265ccbb42
Document shared pointer API.
2017-10-18 22:46:11 +02:00
Patrick Pelissier
229f99585d
Rename _look ==> _read and _take ==> _write
2017-10-15 22:49:59 +02:00
Patrick Pelissier
535ea729ed
Add a more representative test for the snapshot.
2017-10-11 22:35:57 +02:00
Patrick Pelissier
23694d69f5
Fix doc
2017-10-11 22:21:21 +02:00
Patrick Pelissier
2700ccba1a
[SNAPSHOT]:
...
* Rename functions get_produced / get_consummed into get_write_buffer and get_read_buffer
* Add function _updated_p
* Add comments.
2017-10-11 22:16:39 +02:00
Patrick Pelissier
49624eee15
Document snapshot
2017-10-10 23:06:49 +02:00
Patrick Pelissier
9cea3cf74d
Fix issue with definition of oplist of a snapshot
2017-10-10 23:06:33 +02:00
Patrick Pelissier
4d328d97f1
FIXME --> TODO
2017-10-09 23:23:58 +02:00
Patrick Pelissier
eed1579f76
Fix issue with C++
2017-10-04 22:11:58 +02:00
Patrick Pelissier
c9e321228f
Fix indentation.
2017-10-04 22:11:47 +02:00
Patrick Pelissier
bb5d350fbc
Fix missing VLA for C++
2017-10-04 21:55:24 +02:00
Patrick Pelissier
85a7082f80
Add missing cast for C++
2017-10-04 21:54:16 +02:00
Patrick Pelissier
669ba3d8b1
Fix warnings.
2017-10-04 21:50:08 +02:00
Patrick Pelissier
d1dc69f482
Allow paralelisation of scan-build too.
2017-10-04 21:49:52 +02:00
Patrick Pelissier
ea78ccca05
Remove unused var
2017-10-04 21:45:28 +02:00
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