summaryrefslogtreecommitdiff
path: root/kern/bitmap.c
AgeCommit message (Collapse)Author
2018-02-24Update license note about modules from librbraunRichard 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-05-31Move limits.h to the include directoryRichard Braun
This turns limits.h into a standard header.
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
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-03-09kern/bitmap: fix complement computationRichard Braun
The complement must take into account the total number of bits.
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.