From 70e50d2f415cb3b40a04da6c22400db2b35973b9 Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 27 Jun 2015 02:49:56 +0100 Subject: [PATCH] rename to FromBigEndian/FromLilEndian --- octa/functional.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 */