[PATCH] Random map fix
[fio.git] / arch-x86_64.h
CommitLineData
ebac4655
JA
1#ifndef ARCH_X86_64_h
2#define ARCH_X86_64_h
3
4#define ARCH (arch_x86_64)
5
6#ifndef __NR_ioprio_set
7#define __NR_ioprio_set 251
8#define __NR_ioprio_get 252
9#endif
10
11#ifndef __NR_fadvise64
12#define __NR_fadvise64 221
13#endif
14
8756e4d4
JA
15#ifndef __NR_sys_splice
16#define __NR_sys_splice 275
17#define __NR_sys_tee 276
18#define __NR_sys_vmsplice 278
19#endif
20
ebac4655
JA
21#define nop __asm__ __volatile__("rep;nop": : :"memory")
22
23static inline unsigned long ffz(unsigned long bitmask)
24{
25 __asm__("bsfq %1,%0" :"=r" (bitmask) :"r" (~bitmask));
26 return bitmask;
27}
28
29
30#endif