1 #ifndef _LEO_LABELLER_UTILS_H
2 #define _LEO_LABELLER_UTILS_H
4 #define DEBUG(dbg_sec, dbg_lvl, msg, ...) if (dbg_sec >= dbg_lvl) printf(msg, ##__VA_ARGS__)
16 int max2(int a, int b);
17 int min2(int a, int b);
18 int max4(int a, int b, int c, int d);
19 int min4(int a, int b, int c, int d);
21 int randint(int min, int max);
22 double randdouble(void);
23 int flip(int a, int b);
25 double convert_to_deg(double rotate_rad);
26 double convert_to_rad(double rotate_deg);
28 struct placement **filter(struct placement **list, bool **pred_ptr);