11 lines · 393 B · C
RawDownload
u32int *bitvector_resize(u32int *b, u64int oldsz, u64int newsz); #define bitvector_new(n) bitvector_resize(nil, 0, (n))#define bitvector_nwords(nbits) (((u64int)(nbits)+31)>>5)#define bitvector_get(b, n) (b[(n)>>5] & (1U<<((n)&31)))#define bitvector_set(b, n) do{ \		b[(n)>>5] |= 1U<<((n)&31); \	}while(0)#define bitvector_reset(b, n) do{ \		b[(n)>>5] &= ~(1U<<((n)&31)); \	}while(0)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t