Searched refs:MAX_TYPES (Results 1 – 3 of 3) sorted by relevance
| /freebsd-13.1/contrib/ntp/libntp/ |
| H A D | ntp_random.c | 143 #define MAX_TYPES 5 /* max number of types above */ macro 319 #define MAX_TYPES 5 /* max number of types above */ macro 321 static long degrees[MAX_TYPES] = { DEG_0, DEG_1, DEG_2, DEG_3, DEG_4 }; 322 static long seps [MAX_TYPES] = { SEP_0, SEP_1, SEP_2, SEP_3, SEP_4 }; 360 state[-1] = MAX_TYPES * (rptr - state) + rand_type; in ntp_initstate() 393 long_arg_state[0] = MAX_TYPES * (rptr - state) + rand_type; in ntp_initstate() 422 register long type = new_state[0] % MAX_TYPES; in ntp_setstate() 423 register long rear = new_state[0] / MAX_TYPES; in ntp_setstate() 429 state[-1] = MAX_TYPES * (rptr - state) + rand_type; in ntp_setstate()
|
| /freebsd-13.1/lib/libc/stdlib/ |
| H A D | random.c | 109 static const int degrees[MAX_TYPES] = { DEG_0, DEG_1, DEG_2, DEG_3, DEG_4 }; 110 static const int seps[MAX_TYPES] = { SEP_0, SEP_1, SEP_2, SEP_3, SEP_4 }; 111 static const int breaks[MAX_TYPES] = { 369 implicit.rst_state[-1] = MAX_TYPES * in initstate() 383 int_arg_state[0] = MAX_TYPES * in initstate() 413 uint32_t type = new_state[0] % MAX_TYPES; in setstate() 414 uint32_t rear = new_state[0] / MAX_TYPES; in setstate() 422 implicit.rst_state[-1] = MAX_TYPES * in setstate() 502 if (type > (MAX_TYPES - 1)) in allocatestate() 503 type = (MAX_TYPES - 1); in allocatestate()
|
| H A D | random.h | 66 #define MAX_TYPES 5 /* max number of types above */ macro
|