Patrick Pelissier
|
02d4bf0e09
|
Export method _empty_p for operator TEST_EMPTY for all containers.
|
2018-10-29 11:06:54 +01:00 |
|
Patrick Pelissier
|
b52222cad9
|
Add operator INIT_WITH for oplist with PUSH.
|
2018-09-01 21:22:18 +02:00 |
|
Patrick Pelissier
|
cbb08bdcfc
|
Amend previous commit.
|
2018-08-19 20:28:46 +02:00 |
|
Patrick Pelissier
|
0de829741a
|
Add synonimous for pointers.
|
2018-08-19 20:27:45 +02:00 |
|
Patrick Pelissier
|
39ffe1c95a
|
Fix issue for 32 bits build due to previous modification of limb size to 64 bits.
|
2018-07-29 19:40:08 +02:00 |
|
Patrick Pelissier
|
dbe8817d95
|
Add bitset_clz
|
2018-07-27 06:19:54 +02:00 |
|
Patrick Pelissier
|
4b8779d8d3
|
Update formula for increasing the size.
|
2018-07-24 00:24:50 +02:00 |
|
Patrick Pelissier
|
96202aa78f
|
Do not use reserved identifiers of the C standard (See 7.1.3 Reserved identifiers)
|
2018-07-14 14:35:14 +02:00 |
|
Patrick Pelissier
|
397f75a4db
|
Add missing method _front for bitset.
|
2018-06-27 07:33:23 +02:00 |
|
Patrick Pelissier
|
64080fadd3
|
Update comments.
|
2018-05-03 13:07:52 +02:00 |
|
Patrick Pelissier
|
839c1af124
|
Export _parse_str function.
|
2018-05-03 13:04:04 +02:00 |
|
Patrick Pelissier
|
6b24842704
|
Add _parse_str interface.
Rewrite _set_str to use the _parse_str
|
2018-05-03 12:59:58 +02:00 |
|
Patrick Pelissier
|
1753ddc4d6
|
Improve bitset_at version by avoiding a redundant variable shift.
|
2018-02-16 20:42:42 +01:00 |
|
Patrick Pelissier
|
210e05f7fc
|
Update copyright to 2018
|
2018-01-29 20:28:30 +01: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
|
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
|
b998e884ce
|
Change limb from int to long to get more efficient.
|
2017-09-17 10:42:35 +02:00 |
|
Patrick Pelissier
|
2e564088b0
|
Simplify the inclusion of headers.
|
2017-09-16 10:14:45 +02:00 |
|
Patrick Pelissier
|
e80a9b8bb3
|
Add bitset_t as a global oplist.
|
2017-09-14 23:02:33 +02:00 |
|
Patrick Pelissier
|
42949f3864
|
Simplify(bis)
|
2017-08-19 21:10:45 +02:00 |
|
Patrick Pelissier
|
ebfc5615fc
|
Simplify loop of _in_str
|
2017-08-19 21:10:26 +02:00 |
|
Patrick Pelissier
|
44cdfa0c77
|
Remove use of feof and ferror as it is not needed as the return of fgetc
is sufficent.
|
2017-08-19 21:05:55 +02:00 |
|
Patrick Pelissier
|
ffc383884d
|
Add macro M_HASH_FINAL
|
2017-08-17 20:22:01 +02:00 |
|
Patrick Pelissier
|
5f1bfe9117
|
Add new function flip_at
|
2017-08-15 21:32:29 +02:00 |
|
Patrick Pelissier
|
e84961fa77
|
Add protecftion against overflow.
Update contact.
|
2017-08-14 20:46:51 +02:00 |
|
Patrick Pelissier
|
513727dcf8
|
Update.
Do not import m-string automatically.
|
2017-08-14 19:36:52 +02:00 |
|
Patrick Pelissier
|
63dfa68319
|
Update
|
2017-08-14 19:28:25 +02:00 |
|
Patrick Pelissier
|
0e232d146b
|
Branchless version of _set_at
|
2017-08-14 19:19:23 +02:00 |
|
Patrick Pelissier
|
f539cd877f
|
Add comments for bitset
|
2017-08-14 19:05:35 +02:00 |
|
Patrick Pelissier
|
a4946a39bc
|
Fix overflow issue.
|
2017-08-06 23:05:21 +02:00 |
|
Patrick Pelissier
|
e0a5eb81d8
|
Add contract check
|
2017-07-11 22:55:31 +02:00 |
|
Patrick Pelissier
|
e8ae66371a
|
Fix issue detected by new test.
|
2017-07-11 22:39:46 +02:00 |
|
Patrick Pelissier
|
f8ff180b94
|
Prepare for conditionnal use of m-string by m-bitset.
|
2017-07-08 13:00:47 +02:00 |
|
Patrick Pelissier
|
5be073b9bd
|
Fix comment.
|
2017-07-08 12:57:21 +02:00 |
|
Patrick Pelissier
|
4d76a2d46f
|
Clean up code.
|
2017-05-27 20:46:45 +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
|
c6babc8856
|
Add some likely / unlikely some tests.
|
2017-03-27 21:52:09 +02:00 |
|
Patrick Pelissier
|
e335c6c5fb
|
Minor tuning
|
2017-03-27 16:45:02 +02:00 |
|
Patrick Pelissier
|
0f144f06a5
|
Reduce initial alloc by 4 (to take into account limb size)
|
2017-03-27 13:55:09 +02:00 |
|
Patrick Pelissier
|
047a3ac9c1
|
Add bitset_swap & export it.
|
2017-03-14 20:27:45 +01:00 |
|
Patrick Pelissier
|
eaf3af8c07
|
Implement IT_END operator.
Add missing IT_LAST operator
|
2017-03-13 10:32:57 +01:00 |
|
Patrick Pelissier
|
e21b45d9ac
|
Fix #3 (Empty containers & IN_STR operator).
|
2017-03-10 01:29:49 +01:00 |
|
Patrick Pelissier
|
988b7e03ff
|
Add bitset_hash operator
|
2017-03-08 21:31:28 +01:00 |
|
Patrick Pelissier
|
9f15637461
|
Change limb from unsigned char to unsigned int.
Should be faster for some operations, and we won't lose a lot of space anyway.
|
2017-03-04 18:55:29 +01:00 |
|
Patrick Pelissier
|
dd6f52e3a1
|
Encapsulate unsigned char within new type bitset_limb
|
2017-03-04 18:49:49 +01:00 |
|
Patrick Pelissier
|
43ce32ab69
|
Add test for bitset logic
Add bitset_set_str
Add bitset_xor
Fix bugs
|
2017-03-04 18:46:33 +01:00 |
|
Patrick Pelissier
|
eb15fcc6c7
|
Update comments.
|
2017-03-02 20:56:01 +01:00 |
|
Patrick Pelissier
|
7d2a640842
|
Add and, or and not operator for bitset
|
2017-03-02 20:54:36 +01:00 |
|
Patrick Pelissier
|
19599f790c
|
Update TODO
|
2017-02-21 23:08:59 +01:00 |
|