replace fallback code with optimal implementation
commitc088ebdf54f4cc64a0b7b4f2dc07f93d06da0e6b
authorrofl0r <rofl0r@users.noreply.github.com>
Wed, 15 Sep 2021 21:49:41 +0000 (15 21:49 +0000)
committerrofl0r <rofl0r@users.noreply.github.com>
Wed, 15 Sep 2021 22:05:43 +0000 (15 22:05 +0000)
tree016345c9d41d31f6bbb7f6ca56babd79e98bf66b
parent882e3515647809d84a2bda905e957560d036bc4a
replace fallback code with optimal implementation

using the approach musl libc uses for htonl() and friends.
this creates optimal assembly with almost all compilers >= GCC 4.2,
and also gets rid of the now gratuitous inclusion of limits.h.
endianness.h