summaryrefslogtreecommitdiff
path: root/kern/bitmap.h
AgeCommit message (Collapse)Author
2018-02-24Update license note about modules from librbraunRichard Braun
2018-02-24Don't use reserved identifiersRichard Braun
2017-06-15kern/bitmap: make bitmap_lookup conform to coding rulesRichard Braun
Macros with lower case names must have a function-like interface.
2017-06-13Various atomic access fixesRichard Braun
2017-05-31Move limits.h to the include directoryRichard Braun
This turns limits.h into a standard header.
2017-05-09Replace sequential consistency with more efficient ordersAgustina Arzille
2017-04-04Use the new atomic operations interfaceAgustina Arzille
Stick to a sequentially consistent model for most atomic operations as it matches the semantics of the existing code. Each call site will have to be reevaluated in order to switch to more relaxed accesses where possible.
2017-02-04Clean up compilationRichard Braun
Instead of mixing standard headers and internal redefinitions of standard types, completely rely on the compiler for what is guaranteed for a free standing environment. This results in the removal of kern/stddef.h and kern/stdint.h. The kern/types.h header is reintroduced for the different (and saner) purpose of defining types not specified in standard C, namely ssize_t for now.
2016-12-09Force brackets around one-line conditional statementsRichard Braun
This change was done using astyle, with a few manual editing here and there.
2014-05-05kern/bitmap: add cmp/and/or/xor operationsRichard Braun
2014-01-03Update calls to atomic operationsRichard Braun
Make spin locks and mutexes encode their state on an int rather than a long.
2013-05-15kern/bitmap: move helper functions to bitmap_i.hRichard Braun
Although the dinstinction between those and the public interface was already easy to make, it's a bit more consistent and elegant this way.
2013-05-15kern/bitmap: new bitmap_copy functionRichard Braun
2013-03-08kern/bitmap: add const keywords where appropriateRichard Braun
2013-03-08kern/bitmap: remove volatile keywordsRichard Braun
Using this qualifier for such a generic data structure is inefficient. It was a left over from the initial implementation that was meant for concurrent accesses.
2013-03-08kern/bitmap: new functionsRichard Braun
Augment the interface with functions to search and iterate over zero bits.
2013-03-08kern/bitmap: rename bitmap_init, new bitmap_fill functionRichard Braun
The bitmap_init function is renamed to bitmap_zero for consistency.
2013-03-08kern/bitmap: add the bitmap_for_each macroRichard Braun
2013-03-07kern/bitmap: new moduleRichard Braun
This module provides arbitrary-length bit arrays.