Home
last modified time | relevance | path

Searched refs:CLAMP (Results 1 – 8 of 8) sorted by relevance

/netbsd/src/external/bsd/ntp/dist/ntpd/
Dntp_peer.c63 #define MATCH_ASSOC(x, y) (AM[CLAMP((x), 0, AM_MODES)][CLAMP((y), 0, AM_MODES)])
975 peer->maxpoll = CLAMP(peer->maxpoll, NTP_MINPOLL, NTP_MAXPOLL); in newpeer()
976 peer->minpoll = CLAMP(peer->minpoll, NTP_MINPOLL, peer->maxpoll); in newpeer()
/netbsd/src/external/gpl3/gdb/dist/sim/bfin/
Dbfin-sim.h369 #undef CLAMP
370 #define CLAMP(a, b, c) min (max (a, b), c) macro
Ddv-bfin_uart.c366 nr_bytes = CLAMP (ret, 0, nr_bytes); in bfin_uart_write_buffer()
Dbfin-sim.c872 shift = CLAMP (shift, -nbits, nbits); in rot40()
894 shift = CLAMP (shift, -nbits, nbits); in rot32()
4435 STORE (DREG (dst0), (CLAMP (tmp0, 0, 255) << ( 0 + (8 * HL))) | in decode_dsp32alu_0()
4436 (CLAMP (tmp1, 0, 255) << (16 + (8 * HL)))); in decode_dsp32alu_0()
DChangeLog-2021396 (CLAMP): Change MIN to min and MAX to max.
/netbsd/src/external/bsd/ntp/dist/include/
Dntp.h720 #define CLAMP(val, minval, maxval) \ macro
/netbsd/src/sys/kern/
Dtty.c2626 #define CLAMP(x, h, l) ((x) > h ? h : ((x) < l) ? l : (x)) in ttsetwater() macro
2629 tp->t_lowat = x = CLAMP(cps / 2, TTMAXLOWAT, TTMINLOWAT); in ttsetwater()
2631 x = CLAMP(x, TTMAXHIWAT, TTMINHIWAT); in ttsetwater()
2633 #undef CLAMP in ttsetwater()
/netbsd/src/external/gpl3/binutils/dist/
DChangeLog.git57620 aarch64: Add the SME2 CLAMP instructions