Commit 4b5cecc7 authored by Vitaly Arbuzov's avatar Vitaly Arbuzov
Browse files

Make intset search private again

parent de83c8a0
...@@ -114,7 +114,7 @@ static intset *intsetResize(intset *is, uint32_t len) { ...@@ -114,7 +114,7 @@ static intset *intsetResize(intset *is, uint32_t len) {
* sets "pos" to the position of the value within the intset. Return 0 when * sets "pos" to the position of the value within the intset. Return 0 when
* the value is not present in the intset and sets "pos" to the position * the value is not present in the intset and sets "pos" to the position
* where "value" can be inserted. */ * where "value" can be inserted. */
uint8_t intsetSearch(intset *is, int64_t value, uint32_t *pos) { static uint8_t intsetSearch(intset *is, int64_t value, uint32_t *pos) {
int min = 0, max = intrev32ifbe(is->length)-1, mid = -1; int min = 0, max = intrev32ifbe(is->length)-1, mid = -1;
int64_t cur = -1; int64_t cur = -1;
......
...@@ -42,7 +42,6 @@ intset *intsetNew(void); ...@@ -42,7 +42,6 @@ intset *intsetNew(void);
intset *intsetAdd(intset *is, int64_t value, uint8_t *success); intset *intsetAdd(intset *is, int64_t value, uint8_t *success);
intset *intsetRemove(intset *is, int64_t value, int *success); intset *intsetRemove(intset *is, int64_t value, int *success);
uint8_t intsetFind(intset *is, int64_t value); uint8_t intsetFind(intset *is, int64_t value);
uint8_t intsetSearch(intset *is, int64_t value, uint32_t *pos);
int64_t intsetRandom(intset *is); int64_t intsetRandom(intset *is);
int64_t intsetMax(intset *is); int64_t intsetMax(intset *is);
int64_t intsetMin(intset *is); int64_t intsetMin(intset *is);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment