Lines Matching refs:pos
338 #define BS_ROOM(bs,pos) (bs)[pos / BITS_IN_ROOM] argument
339 #define BS_BIT(pos) (1 << (pos % BITS_IN_ROOM)) argument
341 #define BITSET_AT(bs, pos) (BS_ROOM(bs,pos) & BS_BIT(pos)) argument
342 #define BITSET_SET_BIT(bs, pos) BS_ROOM(bs,pos) |= BS_BIT(pos) argument
343 #define BITSET_CLEAR_BIT(bs, pos) BS_ROOM(bs,pos) &= ~(BS_BIT(pos)) argument
344 #define BITSET_INVERT_BIT(bs, pos) BS_ROOM(bs,pos) ^= BS_BIT(pos) argument
377 #define BBUF_WRITE(buf,pos,bytes,n) do{\ argument
378 int used = (pos) + (n);\
380 xmemcpy((buf)->p + (pos), (bytes), (n));\
384 #define BBUF_WRITE1(buf,pos,byte) do{\ argument
385 int used = (pos) + 1;\
387 (buf)->p[(pos)] = (byte);\
414 #define BBUF_INSERT(buf,pos,bytes,n) do {\ argument
415 if (pos >= (buf)->used) {\
416 BBUF_WRITE(buf,pos,bytes,n);\
419 BBUF_MOVE_RIGHT((buf),(pos),(pos) + (n),((buf)->used - (pos)));\
420 xmemcpy((buf)->p + (pos), (bytes), (n));\
424 #define BBUF_GET_BYTE(buf, pos) (buf)->p[(pos)] argument