| 805 | |
| 806 | #if defined(__mips_n64) || defined(__mips_n32) |
| 807 | static __inline uint64_t |
| 808 | atomic_swap_64(volatile uint64_t *ptr, const uint64_t value) |
| 809 | { |
| 810 | uint64_t retval; |
| 811 | |
| 812 | retval = *ptr; |
| 813 | |
| 814 | while (!atomic_fcmpset_64(ptr, &retval, value)) |
| 815 | ; |
| 816 | return (retval); |
| 817 | } |
| 818 | #endif |
| 819 | |
| 820 | #ifdef __mips_n64 |
nothing calls this directly
no test coverage detected