diff --git a/octa/functional.h b/octa/functional.h index 1a259da..dcaaa8d 100644 --- a/octa/functional.h +++ b/octa/functional.h @@ -163,15 +163,15 @@ namespace detail { } #if OCTA_BYTE_ORDER == OCTA_ENDIAN_LIL -template struct EndianSwapLil: octa::detail::EndianSame {}; -template struct EndianSwapBig: EndianSwap {}; +template struct FromLilEndian: octa::detail::EndianSame {}; +template struct FromBigEndian: EndianSwap {}; #else -template struct EndianSwapLil: EndianSwap {}; -template struct EndianSwapBig: octa::detail::EndianSame {}; +template struct FromLilEndian: EndianSwap {}; +template struct FromBigEndian: octa::detail::EndianSame {}; #endif -template T endian_swap_lil(T x) { return EndianSwapLil()(x); } -template T endian_swap_big(T x) { return EndianSwapBig()(x); } +template T from_lil_endian(T x) { return FromLilEndian()(x); } +template T from_big_endian(T x) { return FromBigEndian()(x); } /* hash */