summaryrefslogblamecommitdiff
path: root/include/bits/sysmacros.h
blob: da29022d974521bda34386ceba61bf456dd33cfe (plain) (tree)
1
2
3
4
5
6
7






                                             
#define major(x) (((x) >> 8) & 0xff)
#define minor(x) ((x) & 0xff)
#define makedev(x,y) (((x)<<8)|((y)&0xff))

//#define makedev(x,y) \
//	((x)*0x100000001ULL)&(0xfffffffffff0)
//	((y)*0x1001 & 0xffff0ff)