major semaphore improvements (performance and correctness)
[musl] / include / byteswap.h