summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cbits.h
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2023-05-19 20:55:57 +0200
committerTyge Lovset <[email protected]>2023-05-19 20:55:57 +0200
commit26513bb1352ab4e4ffe931aabd80868216afc551 (patch)
treeb21b3ede63e3661ad279c80e25ad9719a00281aa /include/stc/cbits.h
parentd629139d053fdc1ff24bc0dc1985e1a2d1a0ac47 (diff)
downloadSTC-modified-26513bb1352ab4e4ffe931aabd80868216afc551.tar.gz
STC-modified-26513bb1352ab4e4ffe931aabd80868216afc551.zip
Minor cbits change.
Diffstat (limited to 'include/stc/cbits.h')
-rw-r--r--include/stc/cbits.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/stc/cbits.h b/include/stc/cbits.h
index 855d6eb7..cf13790a 100644
--- a/include/stc/cbits.h
+++ b/include/stc/cbits.h
@@ -128,7 +128,6 @@ STC_INLINE bool _cbits_disjoint(const uint64_t* set, const uint64_t* other, cons
typedef struct { uint64_t *data64; int64_t _size; } i_type;
STC_INLINE cbits cbits_init(void) { return c_LITERAL(cbits){NULL}; }
-STC_INLINE void cbits_create(cbits* self) { self->data64 = NULL; self->_size = 0; }
STC_INLINE void cbits_drop(cbits* self) { c_free(self->data64); }
STC_INLINE int64_t cbits_size(const cbits* self) { return self->_size; }
@@ -200,7 +199,6 @@ STC_INLINE cbits cbits_with_pattern(const int64_t size, const uint64_t pattern)
typedef struct { uint64_t data64[(i_capacity - 1)/64 + 1]; } i_type;
STC_INLINE i_type _i_memb(_init)(void) { return c_LITERAL(i_type){0}; }
-STC_INLINE void _i_memb(_create)(i_type* self) {}
STC_INLINE void _i_memb(_drop)(i_type* self) {}
STC_INLINE int64_t _i_memb(_size)(const i_type* self) { return i_capacity; }
STC_INLINE i_type _i_memb(_move)(i_type* self) { return *self; }