Home
last modified time | relevance | path

Searched refs:ISC_MIN (Results 1 – 4 of 4) sorted by relevance

/freebsd-12.1/contrib/ntp/lib/isc/win32/
H A Dentropy.c63 ndesired = ISC_MIN(desired, sizeof(buf)); in get_from_filesource()
126 needed = ISC_MIN(needed, RND_POOLBITS); in fillpool()
132 needed = ISC_MIN(needed, RND_POOLBITS - ent->pool.entropy); in fillpool()
177 remaining -= ISC_MIN(remaining, got); in fillpool()
209 remaining -= ISC_MIN(remaining, got); in fillpool()
/freebsd-12.1/contrib/ntp/lib/isc/unix/
H A Dentropy.c87 ndesired = ISC_MIN(desired, sizeof(buf)); in get_from_filesource()
128 ndesired = ISC_MIN(desired, sizeof(buf)); in get_from_usocketsource()
291 needed = ISC_MIN(needed, RND_POOLBITS); in fillpool()
297 needed = ISC_MIN(needed, RND_POOLBITS - ent->pool.entropy); in fillpool()
344 remaining -= ISC_MIN(remaining, got); in fillpool()
374 remaining -= ISC_MIN(remaining, got); in fillpool()
/freebsd-12.1/contrib/ntp/lib/isc/
H A Dentropy.c229 entropy = ISC_MIN(entropy, RND_POOLBITS); in add_entropy()
233 ent->pool.entropy = ISC_MIN(entropy, RND_POOLBITS); in add_entropy()
241 entropy = ISC_MIN(entropy, ent->pool.entropy); in subtract_entropy()
252 pseudo = ISC_MIN(pseudo, RND_POOLBITS * 8); in add_pseudo()
256 ent->pool.pseudo = ISC_MIN(pseudo, RND_POOLBITS * 8); in add_pseudo()
264 pseudo = ISC_MIN(pseudo, ent->pool.pseudo); in subtract_pseudo()
507 desired -= ISC_MIN(got, desired); in get_from_callback()
556 count = ISC_MIN(remain, RND_ENTROPY_THRESHOLD); in isc_entropy_getdata()
626 deltae = ISC_MIN(deltae, ent->pool.entropy); in isc_entropy_getdata()
/freebsd-12.1/contrib/ntp/lib/isc/include/isc/
H A Dutil.h57 #define ISC_MIN(a, b) ((a) < (b) ? (a) : (b)) macro