UNGRAB
#define UNGRAB {n+=(c=k>>3);p-=c;k&=7;}
#define UNGRAB {c = z->avail_in-n; c = (k>>3) < c?k>>3:c; n += c; p -= c; \