loongarch64: add new syscall numbers
[musl.git] / src / network / htonl.c
blob6622d16cc5351749d1b76c5f24aa71009b018ff0
1 #include <netinet/in.h>
2 #include <byteswap.h>
4 uint32_t htonl(uint32_t n)
6 union { int i; char c; } u = { 1 };
7 return u.c ? bswap_32(n) : n;