Converting from int to int32_t and some cases bool.
This commit is contained in:
12 files changed
+51
-48
No files matched your search
+3
-8
@@ -14,7 +14,7 @@ typedef struct Node {
|
||||
* @brief Initializes the node pool with a specified maximum number of nodes
|
||||
* @param max_nodes The maximum number of nodes the pool can hold
|
||||
*/
|
||||
void node_pool_init(int max_nodes);
|
||||
void node_pool_init(int32_t max_nodes);
|
||||
|
||||
/**
|
||||
* @brief Allocates a node from the pool
|
||||
@@ -36,7 +36,7 @@ void node_pool_destroy();
|
||||
* @brief Returns the current usage of the node pool
|
||||
* @return The number of nodes currently allocated from the pool
|
||||
*/
|
||||
int node_pool_usage();
|
||||
int32_t node_pool_usage();
|
||||
|
||||
/**
|
||||
* @brief Tries to push child nodes based on the current node's move
|
||||
@@ -44,11 +44,6 @@ int node_pool_usage();
|
||||
*/
|
||||
void try_push_children(Node* curr);
|
||||
|
||||
typedef struct VisitedEntry {
|
||||
int128_t a, b, c;
|
||||
struct VisitedEntry* next;
|
||||
} VisitedEntry;
|
||||
|
||||
/**
|
||||
* @brief Marks a triplet as visited and checks if it's new
|
||||
* @param a The first integer of the triplet
|
||||
@@ -56,7 +51,7 @@ typedef struct VisitedEntry {
|
||||
* @param c The third integer of the triplet
|
||||
* @return 1 if the triplet is new and marked, 0 if it was already visited
|
||||
*/
|
||||
int visit_and_mark(int128_t a, int128_t b, int128_t c);
|
||||
bool visit_and_mark(int128_t a, int128_t b, int128_t c);
|
||||
|
||||
/**
|
||||
* @brief Clears the hash table
|
||||
|
||||
Reference in new issue
Block a user