From 11048808cbe3dc77bb2bee6d2643a33a45574509 Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Mon, 13 Sep 2021 16:10:57 +0400 Subject: Added bitset --- src/storage.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/storage.h') diff --git a/src/storage.h b/src/storage.h index 3989c4a..f7f5cd9 100644 --- a/src/storage.h +++ b/src/storage.h @@ -12,6 +12,9 @@ #define MAX_COMPONENTS 32 #endif +#define BITSET_BYTES (MAX_COMPONENTS / 8) +#include "bitset.h" + #define GET_COMPONENT(storage, componentType, idx) (componentType *) internal_getComponent(storage, idx, #componentType) #define REGISTER_COMPONENT(storage, componentType) internal_registerComponent(storage, #componentType, sizeof(componentType)) #define ADD_COMPONENT(storage, idx, componentType) internal_addComponent(storage, idx, #componentType) @@ -30,6 +33,7 @@ typedef struct unsigned int componentsStored; unsigned int objectsStored; component_pair_t *objects; + bitarena_t objectSignatures; } storage_t; component_pair_t * // NULL if pair is not found -- cgit v1.2.3