endian.h: add BSD convertions between big/little-endian byte order
endian.h: add BSD convertions between big/little-endian byte order

This patch adds support for convertion of values between host and
big-/little-endian byte order.

Signed-off-by: Vladimir Zapolskiy <db9c790829dcb458d3bf76afc103e85be10d8afc@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <ce1ac9e9ad16abccd7821f371ad381197b4768ac@gmail.com>

joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc