1 #ifndef __ASM_SH_FUTEX_IRQ_H
2 #define __ASM_SH_FUTEX_IRQ_H
5 static inline int atomic_futex_op_xchg_set(
int oparg,
u32 __user *
uaddr,
22 static inline int atomic_futex_op_xchg_add(
int oparg,
u32 __user *uaddr,
32 ret =
put_user(*oldval + oparg, uaddr);
39 static inline int atomic_futex_op_xchg_or(
int oparg,
u32 __user *uaddr,
49 ret =
put_user(*oldval | oparg, uaddr);
56 static inline int atomic_futex_op_xchg_and(
int oparg,
u32 __user *uaddr,
66 ret =
put_user(*oldval & oparg, uaddr);
73 static inline int atomic_futex_op_xchg_xor(
int oparg,
u32 __user *uaddr,
83 ret =
put_user(*oldval ^ oparg, uaddr);
90 static inline int atomic_futex_op_cmpxchg_inatomic(
u32 *uval,
101 if (!ret && oldval == prev)