All Projects → lemire → Cbitset

lemire / Cbitset

Licence: apache-2.0
A simple bitset library in C

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
SwiftBitset
A fast Bitset class in Swift
Stars: ✭ 33 (-54.79%)
Mutual labels:  bitset
prjxray-db
Project X-Ray Database: XC7 Series
Stars: ✭ 52 (-28.77%)
Mutual labels:  bitset
Bitvec
A crate for managing memory bit by bit
Stars: ✭ 411 (+463.01%)
Mutual labels:  bitset
Roaringbitmap
A better compressed bitset in Java
Stars: ✭ 2,460 (+3269.86%)
Mutual labels:  bitset
Roaring
Roaring bitmaps in Go (golang)
Stars: ✭ 1,118 (+1431.51%)
Mutual labels:  bitset
bitset2
std::bitset with constexpr implementations plus additional features.
Stars: ✭ 76 (+4.11%)
Mutual labels:  bitset
Croaring
Roaring bitmaps in C (and C++)
Stars: ✭ 735 (+906.85%)
Mutual labels:  bitset
enumset
A library for compact bit sets containing enums.
Stars: ✭ 60 (-17.81%)
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
Ewahboolarray
A compressed bitmap class in C++.
Stars: ✭ 381 (+421.92%)
Mutual labels:  bitset
Roaringbitmap
Roaring Bitmap in Cython
Stars: ✭ 64 (-12.33%)
Mutual labels:  bitset
Csharpewah
Compressed bitmaps in C#
Stars: ✭ 59 (-19.18%)
Mutual labels:  bitset
Bitset
Go package implementing bitsets
Stars: ✭ 649 (+789.04%)
Mutual labels:  bitset

cbitset

Build Status Ubuntu 20.04 CI (GCC 9) Ubuntu 18.04 CI (GCC 7) MSYS2-CI Visual Studio-CI

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].