math: x86_64 version of expl, fixed some comments in the i386 version
[musl] / src / thread / pthread_spin_trylock.c
1 #include "pthread_impl.h"
2
3 int pthread_spin_trylock(pthread_spinlock_t *s)
4 {
5         return -a_swap(s, 1) & EBUSY;
6 }