source: azure_iot_hub/trunk/musl-1.1.18/include/sys/sysmacros.h@ 389

Last change on this file since 389 was 389, checked in by coas-nagasima, 5 years ago

ビルドが通るよう更新

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 394 bytes
Line 
1#ifndef _SYS_SYSMACROS_H
2#define _SYS_SYSMACROS_H
3
4#define major(x) \
5 ((unsigned)( (((x)>>31>>1) & 0xfffff000) | (((x)>>8) & 0x00000fff) ))
6#define minor(x) \
7 ((unsigned)( (((x)>>12) & 0xffffff00) | ((x) & 0x000000ff) ))
8
9#define makedev(x,y) ( \
10 (((x)&0xfffff000ULL) << 32) | \
11 (((x)&0x00000fffULL) << 8) | \
12 (((y)&0xffffff00ULL) << 12) | \
13 (((y)&0x000000ffULL)) )
14
15#endif
Note: See TracBrowser for help on using the repository browser.