HelenOS sources
BIT_RANGE 175 uspace/drv/audio/hdaudio/hdactl.c corbsz = corbsz & ~BIT_RANGE(uint8_t, corbsize_size_h, corbsize_size_l);
BIT_RANGE 272 uspace/drv/audio/hdaudio/hdactl.c rirbsz = rirbsz & ~BIT_RANGE(uint8_t, rirbsize_size_h, rirbsize_size_l);
BIT_RANGE 75 uspace/drv/bus/usb/xhci/hw_struct/common.h const uint32_t mask = host2xhci(32, BIT_RANGE(uint32_t, hi, lo));
BIT_RANGE 91 uspace/drv/bus/usb/xhci/hw_struct/common.h const uint64_t mask = host2xhci(64, BIT_RANGE(uint64_t, hi, lo));
BIT_RANGE 120 uspace/drv/bus/usb/xhci/hw_struct/regs.h host2xhci(size, BIT_RANGE(uint##size##_t, (hi), (lo))), \
BIT_RANGE 133 uspace/drv/bus/usb/xhci/hw_struct/regs.h #define XHCI_REG_MASK_RANGE(size, hi, lo) BIT_RANGE(uint##size##_t, hi, lo)
BIT_RANGE 246 uspace/lib/inet/src/addr.c BIT_RANGE(addr32_t, 31, 31 - (naddr->prefix - 1));
BIT_RANGE 265 uspace/lib/inet/src/addr.c BIT_RANGE(uint8_t, 8, 8 - (naddr->prefix - pos - 1));
HelenOS homepage, sources at GitHub