Go to the documentation of this file.
5 #define M_PI 3.14159265358979323846
7 #define M_PI_F ((float)M_PI)
9 #define NB_RAND 0x10000
15 #define RAND_INIT(i) \
17 if (!rand_tab) rand_tab = (int *) malloc (NB_RAND * sizeof(int)) ;\
19 while (rand_pos != 0) rand_tab [rand_pos++] = rand () ;
22 static inline int RAND(
void) {
33 #define iRAND(i) (RAND()%(i))