-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbitset.h
More file actions
39 lines (30 loc) · 951 Bytes
/
Copy pathbitset.h
File metadata and controls
39 lines (30 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// SPDX-License-Identifier: MIT
#ifndef IOUCONTEXT_BITSET_H
#define IOUCONTEXT_BITSET_H
#include <stdbool.h>
#include <stddef.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef HIDDEN
#define HIDDEN __attribute__((visibility("hidden")))
#endif//HIDDEN
typedef struct bitset_s bitset_t;
HIDDEN bitset_t * bitset(size_t);
HIDDEN ssize_t bitset_get(bitset_t *);
HIDDEN bool bitset_any(const bitset_t *);
HIDDEN size_t bitset_has(const bitset_t *);
HIDDEN bool bitset_set(bitset_t *, size_t);
HIDDEN bool bitset_lit(const bitset_t *, size_t);
HIDDEN size_t bitset_max(const bitset_t *);
HIDDEN void bitset_put(bitset_t *, size_t);
HIDDEN ssize_t bitset_two(bitset_t *);
HIDDEN size_t bitset_rank0(bitset_t *, size_t);
HIDDEN size_t bitset_rank1(bitset_t *, size_t);
HIDDEN ssize_t bitset_select0(bitset_t *, size_t);
HIDDEN ssize_t bitset_select1(bitset_t *, size_t);
#ifdef __cplusplus
}
#endif
#endif//IOUCONTEXT_BITSET_H