[PATCH] Add -h help option
[fio.git] / arch-ia64.h
1 #ifndef ARCH_IA64_H
2 #define ARCH_IA64_H
3
4 #define ARCH    (arch_ia64)
5
6 #ifndef __NR_ioprio_set
7 #define __NR_ioprio_set         1274
8 #define __NR_ioprio_get         1275
9 #endif
10
11 #ifndef __NR_fadvise64
12 #define __NR_fadvise64          1234
13 #endif
14
15 #define nop     asm volatile ("hint @pause" ::: "memory");
16
17 #define ia64_popcnt(x)                                                  \
18 ({                                                                      \
19         unsigned long ia64_intri_res;                                   \
20         asm ("popcnt %0=%1" : "=r" (ia64_intri_res) : "r" (x));         \
21         ia64_intri_res;                                                 \
22 })
23
24 static inline unsigned long ffz(unsigned long bitmask)
25 {
26         return ia64_popcnt(bitmask & (~bitmask - 1));
27 }
28
29 #endif