Searched refs:MAX_TYPES (Results 1 – 3 of 3) sorted by relevance
| /freebsd-14.2/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-14.2/lib/libc/stdlib/ |
| H A D | random.c | 106 static const int degrees[MAX_TYPES] = { DEG_0, DEG_1, DEG_2, DEG_3, DEG_4 }; 107 static const int seps[MAX_TYPES] = { SEP_0, SEP_1, SEP_2, SEP_3, SEP_4 }; 108 static const int breaks[MAX_TYPES] = { 366 implicit.rst_state[-1] = MAX_TYPES * in initstate() 380 int_arg_state[0] = MAX_TYPES * in initstate() 410 uint32_t type = new_state[0] % MAX_TYPES; in setstate() 411 uint32_t rear = new_state[0] / MAX_TYPES; in setstate() 419 implicit.rst_state[-1] = MAX_TYPES * in setstate() 499 if (type > (MAX_TYPES - 1)) in allocatestate() 500 type = (MAX_TYPES - 1); in allocatestate()
|
| H A D | random.h | 64 #define MAX_TYPES 5 /* max number of types above */ macro
|