Lines Matching defs:mybit
440 * Clear off all bits lower then 'mybit' in val; if there are no
441 * bits higher than or equal to mybit in val then set mybit. Assumes
442 * mybit equals some power of 2 and is not zero.
444 #define maxbit(val, mybit) \
445 ((val) & ~((mybit)-1)) | ((((val) & ~((mybit)-1)) == 0) ? (mybit) : 0)
450 * Clear off all bits higher then 'mybit' in val; if there are no
451 * bits lower than or equal to mybit in val then set mybit. Assumes
452 * mybit equals some pow2 and is not zero.
454 #define minbit(val, mybit) \
455 (((val)&((mybit)|((mybit)-1))) | \
456 ((((val) & ((mybit)-1)) == 0) ? (mybit) : 0))