Mercurial > hg > th-libs
changeset 213:592bf6da0f1f
Add native to / from he* "conversion" macros, which do nothing.
For completeness and confusion. And because it makes some things easier. \:D/
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 12 Feb 2016 18:16:38 +0200 |
parents | f99fceb09707 |
children | 817a65d7af1e |
files | th_endian.h |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/th_endian.h Fri Feb 12 18:13:22 2016 +0200 +++ b/th_endian.h Fri Feb 12 18:16:38 2016 +0200 @@ -92,6 +92,18 @@ # error Unsupported byte order! #endif +// +// HE = Host Endian, aka same as native +// Provided for completeness +// +#define TH_HE16_TO_NATIVE(value) (value) +#define TH_HE32_TO_NATIVE(value) (value) +#define TH_HE64_TO_NATIVE(value) (value) + +#define TH_NATIVE_TO_HE16(value) (value) +#define TH_NATIVE_TO_HE32(value) (value) +#define TH_NATIVE_TO_HE64(value) (value) + #ifdef __cplusplus }