lemire / Cbitset
Licence: apache-2.0
A simple bitset library in C
Stars: ✭ 73
Programming Languages
c
50402 projects - #5 most used programming language
Labels
Projects that are alternatives of or similar to Cbitset
Bit-lib4j
Useful library to handle bytes or bits in Java. Read and write data in a byte array with a custom size for Java types. Read/Write Integer, Long, signed data, String, Hexa String and Date bit to bit
Stars: ✭ 53 (-27.4%)
Mutual labels: bitset
Mlib
Library of generic and type safe containers in pure C language (C99 or C11) for a wide collection of container (comparable to the C++ STL).
Stars: ✭ 321 (+339.73%)
Mutual labels: bitset
Bitvector
Uncompressed, dynamically resizeable bitset for Kotlin (JS/JVM/Android)
Stars: ✭ 12 (-83.56%)
Mutual labels: bitset
bitset2
std::bitset with constexpr implementations plus additional features.
Stars: ✭ 76 (+4.11%)
Mutual labels: bitset
bitmap-elixir
Bitmap implementation in Elixir using binaries and integers. Fast space efficient data structure for lookups
Stars: ✭ 30 (-58.9%)
Mutual labels: bitset
Javaewah
A compressed alternative to the Java BitSet class
Stars: ✭ 474 (+549.32%)
Mutual labels: bitset
ecs
Build your own Game-Engine based on the Entity Component System concept in Golang.
Stars: ✭ 68 (-6.85%)
Mutual labels: bitset
Cracking The Coding Interview
Solutions for Cracking the Coding Interview - 6th Edition
Stars: ✭ 35 (-52.05%)
Mutual labels: bitset
Bitter
A Swift Bits Manipulation/Bitwise Operations Toolkit
Stars: ✭ 197 (+169.86%)
Mutual labels: bitset
cbitset
Simple bitset library in C. It includes fast functions to compute cardinalities, unions, intersections...
- It is tiny: it is made of three files (two header files and one source file).
- It is tested.
- It is fast.
- It is straight C.
Usage in C:
bitset_t * b = bitset_create();
bitset_set(b,10);
bitset_get(b,10);// returns true
bitset_free(b); // frees memory
CMake
mkdir build
cd build
cmake ..
cmake --build . --config Release
ctest .
The cmake build also supports installation. The header files will be installed in a distinct subdirectory (cbitset).
Old-school Makefiles
To run tests:
make
./unit
Prerequisites
C11-compatible compiler.
Visual Studio now supports the C11 and C17 standards.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].