| 729 | #ifdef __GNUCLIKE_ASM |
| 730 | |
| 731 | static __inline u_int |
| 732 | atomic_swap_int(volatile u_int *p, u_int v) |
| 733 | { |
| 734 | |
| 735 | __asm __volatile( |
| 736 | " xchgl %1,%0 ; " |
| 737 | "# atomic_swap_int" |
| 738 | : "+r" (v), /* 0 */ |
| 739 | "+m" (*p)); /* 1 */ |
| 740 | return (v); |
| 741 | } |
| 742 | |
| 743 | static __inline u_long |
| 744 | atomic_swap_long(volatile u_long *p, u_long v) |
no outgoing calls
no test coverage detected