elDan101 / cbitset

A simple bitset library in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cbitset

Build Status

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.

Usage in C:

bitset_t * b = bitset_create();
bitset_set(b,10);
bitset_get(b,10);// returns true

To run tests:

make
./unit

Prerequisites: GCC-compatible compiler

About

A simple bitset library in C

License:Apache License 2.0


Languages

Language:C 97.3%Language:Makefile 2.7%