https://github.com/JuliaLang/julia
Raw File
Tip revision: 4100322b0754b3f124e82902283b8e12f86078f1 authored by Jeff Bezanson on 14 April 2023, 16:21:29 UTC
fix #49318, structs with odd-size primitive types should count as having padding
Tip revision: 4100322
bitvector.h
// This file is a part of Julia. License is MIT: https://julialang.org/license

#ifndef JL_BITVECTOR_H
#define JL_BITVECTOR_H

#ifdef __cplusplus
extern "C" {
#endif

JL_DLLEXPORT uint32_t *bitvector_new(uint64_t n, int initzero);
JL_DLLEXPORT
uint32_t *bitvector_resize(uint32_t *b, uint64_t oldsz, uint64_t newsz,
                           int initzero);
size_t bitvector_nwords(uint64_t nbits);
JL_DLLEXPORT void bitvector_set(uint32_t *b, uint64_t n, uint32_t c);
JL_DLLEXPORT uint32_t bitvector_get(uint32_t *b, uint64_t n);

#ifdef __cplusplus
}
#endif

#endif
back to top