Perform factor reduction as a modular step
[lttv.git] / lttv / lttv / sync / data_structures.h
index cc422a81261efe105861e68855bd980aca010aa7..c4b0ff1f23a1016a4d759685517738694b90f776 100644 (file)
@@ -22,6 +22,8 @@
 #include <stdbool.h>
 #include <stdint.h>
 
+#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+
 
 enum Direction
 {
@@ -179,7 +181,6 @@ typedef struct
 typedef struct
 {
        unsigned int refCount;
-       unsigned int traceNb;
        PairFactors** pairFactors;
 } AllFactors;
 
@@ -236,6 +237,6 @@ void destroyBroadcast(Broadcast* const broadcast);
 void destroyPairFactors(PairFactors* factorsCHull);
 
 AllFactors* createAllFactors(const unsigned int traceNb);
-void freeAllFactors(AllFactors* const allFactors);
+void freeAllFactors(AllFactors* const allFactors, const unsigned int traceNb);
 
 #endif
This page took 0.022084 seconds and 4 git commands to generate.