#ifndef _LIB_MATH_H #define _LIB_MATH_H #include #include "structures.h" void tic(struct timeval* temps, char* texte) ; double toc(struct timeval start, char* texte) ; void min_max_int1d(int *val_min, int *val_max, int *vect, int dim) ; #define min(a,b) ((a)<(b)) ? (a) : (b) #define max(a,b) ((a)>(b)) ? (a) : (b) uint32 calcul_px_autour_noeud(uint32 ni, uint32 nj, int pas, uint32 idim_m1, uint32 jdim_m1, uint32 *liste_pixel_move); inline int test_inf(double arg1, double arg2); inline int sign_diff_ou_egal_zero(int val1, int val2); inline int sign_diff_strict(int val1, int val2); inline int sinus_triangle(int Ai, int Aj, int Bi, int Bj, int Ci, int Cj); void recopie_vecteur(int *in, int *out, int dim) ; #endif