You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation has the unique node table in kernel.h and the operations cache in cache.h. From bdd.h one can see, that the bdd variable exposed to the user really just is an index into the unique node table.
So, if we replace the int types with a ssize_t (signed size type), then we can expand the BuDDy library to make use of 64-bit indexation.
Use the BDD typedef more thoroughly throughout the code-base.
Add the BUDDY_64_BIT pre-processing variable. If set then ssize_t is defined as signed long long and size_t as unsigned long long. If not, then ssize_t is only a signed long and size_t an unsigned long.
Change BDD to be a ssize_t
The text was updated successfully, but these errors were encountered:
SSoelvsten
changed the title
Change nodetable and cache indexing from int to size_t
Change nodetable and cache indexing from int to ssize_tNov 30, 2023
The current implementation has the unique node table in kernel.h and the operations cache in cache.h. From bdd.h one can see, that the bdd variable exposed to the user really just is an index into the unique node table.
So, if we replace the
int
types with assize_t
(signed size type), then we can expand the BuDDy library to make use of 64-bit indexation.BDD
typedef more thoroughly throughout the code-base.BUDDY_64_BIT
pre-processing variable. If set thenssize_t
is defined as signed long long andsize_t
as unsigned long long. If not, thenssize_t
is only a signed long andsize_t
an unsigned long.BDD
to be assize_t
The text was updated successfully, but these errors were encountered: