Lines Matching refs:pos
334 #define BS_ROOM(bs,pos) (bs)[pos / BITS_IN_ROOM] argument
335 #define BS_BIT(pos) (1 << (pos % BITS_IN_ROOM)) argument
337 #define BITSET_AT(bs, pos) (BS_ROOM(bs,pos) & BS_BIT(pos)) argument
338 #define BITSET_SET_BIT(bs, pos) BS_ROOM(bs,pos) |= BS_BIT(pos) argument
339 #define BITSET_CLEAR_BIT(bs, pos) BS_ROOM(bs,pos) &= ~(BS_BIT(pos)) argument
340 #define BITSET_INVERT_BIT(bs, pos) BS_ROOM(bs,pos) ^= BS_BIT(pos) argument
373 #define BBUF_WRITE(buf,pos,bytes,n) do{\ argument
374 int used = (pos) + (n);\
376 xmemcpy((buf)->p + (pos), (bytes), (n));\
380 #define BBUF_WRITE1(buf,pos,byte) do{\ argument
381 int used = (pos) + 1;\
383 (buf)->p[(pos)] = (byte);\
410 #define BBUF_INSERT(buf,pos,bytes,n) do {\ argument
411 if (pos >= (buf)->used) {\
412 BBUF_WRITE(buf,pos,bytes,n);\
415 BBUF_MOVE_RIGHT((buf),(pos),(pos) + (n),((buf)->used - (pos)));\
416 xmemcpy((buf)->p + (pos), (bytes), (n));\
420 #define BBUF_GET_BYTE(buf, pos) (buf)->p[(pos)] argument