All Projects → lemire → CRoaringUnityBuild

lemire / CRoaringUnityBuild

Licence: other
Dumps of CRoaring unity builds (for convenience)

Programming Languages

c
50402 projects - #5 most used programming language
C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to CRoaringUnityBuild

Roaringbitmap
A better compressed bitset in Java
Stars: ✭ 2,460 (+11081.82%)
Mutual labels:  roaring-bitmaps, roaringbitmap
gpdb-roaringbitmap
RoaringBitmap extension for greenplum-db
Stars: ✭ 105 (+377.27%)
Mutual labels:  roaring-bitmaps
meepo
异构存储数据迁移
Stars: ✭ 29 (+31.82%)
Mutual labels:  roaringbitmap

CRoaringUnityBuild

Dumps of CRoaring unity builds (for convenience)

This code is automatically generated from https://github.com/RoaringBitmap/CRoaring

Building

 echo -e "#include <roaring.hh>\n int main(){Roaring x;}" > test.cpp && cc -c roaring.c -I. -std=c11 && c++ -o test test.cpp roaring.o -I. -std=c++11

You need to compile and link roaring.c with your project: this is not a header-only build.

Usage (C)

#include <stdio.h>
#include "roaring.c"
int main() {
  roaring_bitmap_t *r1 = roaring_bitmap_create();
  for (uint32_t i = 100; i < 1000; i++) roaring_bitmap_add(r1, i);
  printf("cardinality = %d\n", (int) roaring_bitmap_get_cardinality(r1));
  roaring_bitmap_free(r1);
  return 0;
}

Usage (C++)

#include <iostream>
#include "roaring.hh"
#include "roaring.c"
int main() {
  Roaring r1;
  for (uint32_t i = 100; i < 1000; i++) {
    r1.add(i);
  }
  std::cout << "cardinality = " << r1.cardinality() << std::endl;
  return 0;
}
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].