From 25bab8b1fb2fc851ea3f1f630b3de65ca6afdc22 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 14 Dec 2022 00:16:59 +0000 Subject: haha it's been a while since i last committed, hasn't it --- includes/compiler/IroBitVect.h | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 includes/compiler/IroBitVect.h (limited to 'includes/compiler/IroBitVect.h') diff --git a/includes/compiler/IroBitVect.h b/includes/compiler/IroBitVect.h deleted file mode 100644 index 7bbca22..0000000 --- a/includes/compiler/IroBitVect.h +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef COMPILER_IROBITVECT_H -#define COMPILER_IROBITVECT_H - -#include "compiler/common.h" -#include "compiler/CError.h" - -typedef struct BitVector { - UInt32 size; - UInt32 data[0]; -} BitVector; - -extern void Bv_AllocVector(BitVector **bv, UInt32 size); -extern void Bv_AllocVectorLocal(BitVector **bv, UInt32 size); -extern void Bv_ClearBit(UInt32 bit, BitVector *bv); -extern void Bv_And(const BitVector *a, BitVector *b); -extern void Bv_Or(const BitVector *a, BitVector *b); -extern Boolean Bv_BitsInCommon(const BitVector *a, const BitVector *b); -extern Boolean Bv_Compare(const BitVector *a, const BitVector *b); -extern void Bv_Minus(const BitVector *a, BitVector *b); -extern void Bv_Copy(const BitVector *src, BitVector *dst); -extern void Bv_Clear(BitVector *bv); -extern void Bv_Set(BitVector *bv); -extern Boolean Bv_IsSubset(const BitVector *a, const BitVector *b); -extern Boolean Bv_IsEmpty(const BitVector *bv); - -inline void Bv_SetBit(UInt32 bit, BitVector *bv) { - if ((bit / 32) < bv->size) { - bv->data[bit / 32] |= ~(1 << (bit & 31)); - } else { -#line 56 - CError_FATAL(); - } -} - -#endif -- cgit v1.2.3