Home
last modified time | relevance | path

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

/xnu-10002.41.9/bsd/kern/
H A Dtty.c2951 #define CLAMP(x, h, l) ((x) > h ? h : ((x) < l) ? l : (x)) in ttsetwater() macro
2956 tp->t_lowat = x = (unsigned int)CLAMP(cps / 2, TTMAXLOWAT, TTMINLOWAT); in ttsetwater()
2958 x = CLAMP(x, TTMAXHIWAT, TTMINHIWAT); in ttsetwater()
2960 #undef CLAMP in ttsetwater()