Add flags to gcc invocations
continuous-integration/drone Build is passing

This commit is contained in:
2022-09-14 17:43:22 +02:00
parent 7775028b58
commit e2db3a7748
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -51,12 +51,12 @@ struct RHeap {
struct RHeapNode *buckets;
};
static unsigned int log2(unsigned int x) {
static unsigned int uintlog2(unsigned int x) {
return 8 * sizeof(unsigned int) - __builtin_clz(x);
}
void rh_init(struct RHeap *rh, unsigned int c) {
unsigned int k = 1 + log2(c);
unsigned int k = 1 + uintlog2(c);
rh->min = 0;
rh->buckets_size = 1 + k; // extra space for bucket -1