WHEELMASK
#define MASKWHEEL(wheel, time) (((time) >> ((wheel)*WHEELBITS)) & WHEELMASK)
return ((hi | lo) >> (level * WHEELBITS)) & WHEELMASK;