Sigrid Solveig Haflínudóttiruse Plan 9 naming of integer types22b11e51 year agoHistory
11 lines · 144 B · C
RawDownload
#include "platform.h" intsl_clz(u32int x){	u32int r;	if(x == 0)		return 32;	for(r = 0; (x & (1UL<<31)) == 0; x <<= 1, r++);	return r;}

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