Add sparc and sparc64 support
[fio.git] / arch / arch-ia64.h
index b3ee0c38bc13c442d2166eeabcb0a2c745c763e6..9c8b406c1bc3e29bd495f0c5cab699e4e583203a 100644 (file)
 #define __NR_sys_vmsplice      1302
 #endif
 
-#define nop    asm volatile ("hint @pause" ::: "memory");
-
-#define ia64_popcnt(x)                                                 \
-({                                                                     \
-       unsigned long ia64_intri_res;                                   \
-       asm ("popcnt %0=%1" : "=r" (ia64_intri_res) : "r" (x));         \
-       ia64_intri_res;                                                 \
-})
-
-static inline unsigned long ffz(unsigned long bitmask)
-{
-       return ia64_popcnt(bitmask & (~bitmask - 1));
-}
+#define nop            asm volatile ("hint @pause" ::: "memory");
+#define read_barrier() asm volatile ("mf" ::: "memory")
 
 #endif