1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

13 Commits

Author SHA1 Message Date
Benjamin Valentin
2d704a2c59 sys/bitfield: don't set unrelated bits in bf_{set, clear}_all() 2023-03-17 00:08:10 +01:00
Benjamin Valentin
b2c5c16a08 sys/bitfield: don't use ambiguous 'size of the bitfield'
It's otherwise unclear if those are bits or bytes.
2022-12-13 13:09:31 +01:00
Benjamin Valentin
7ed0f7355f sys/bitfield: add bf_clear_all() 2022-12-13 13:09:31 +01:00
Benjamin Valentin
9b09f673fd sys/bitfield: add atomic variants of write functions 2022-12-13 00:32:01 +01:00
Benjamin Valentin
4dd0594d09 sys/bitfield: add bf_popcnt() 2022-11-10 23:44:50 +01:00
Benjamin Valentin
60ab2dbc95 sys/bitfield: add bf_set_all() 2022-11-04 16:48:48 +01:00
Benjamin Valentin
8da267de72 sys/bitfield: add bf_find_first_{set, unset}()
At functions to get the first (un)set bit in a bitfield.
2022-11-02 13:06:06 +01:00
Benjamin Valentin
d406f12028 sys/bitfield: improve documentation of bf_get_unset() 2022-03-08 10:28:31 +01:00
Benjamin Valentin
f3e519e27a sys/bitfield: add support for bitfield operations 2022-03-08 10:28:16 +01:00
Martine Lenders
a6623f834f bitfield: unify order
Currently the bitfield type mixes up the order of bits: While the byte
order is big-endian (most significant byte first), the bit order of each
single byte within the bitfield is little-endian (most significant bit
last). While this isn't a problem for most applications of the bitfield
type it becomes one when sending the bitfield over the network (as done
e.g. in the [ACKs of Selective Fragment Recovery][SFR-ACKs]).

This change unifies byte order and bit order to both be most
significant bX first.

[SFR-ACKs]: https://tools.ietf.org/html/draft-ietf-6lo-fragment-recovery-07
2019-11-20 18:53:11 +01:00
fb9a862177 sys: bitfield: add bf_get_unset 2015-07-07 17:49:17 +02:00
3965e889e1 sys: bitfield.h: some fixes 2015-05-29 15:56:23 +02:00
Oleg Hahm
2ab7565d99 bitfield: introduce bitfield operators 2015-05-28 13:27:41 +02:00