summaryrefslogtreecommitdiff
path: root/insert_string_tpl.h
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2026-01-16 11:49:10 -0800
committerHans Kristian Rosbach <hk-github@circlestorm.org>2026-01-23 18:24:07 +0100
commita565cfa91e19352d100fcf104786bf5e6234d63f (patch)
tree4fed5acb3165b60fec9ea3a45453fe1f2c216920 /insert_string_tpl.h
parentefafe02d0789c917487c63908cd05fac6ff92b93 (diff)
downloadProject-Tick-a565cfa91e19352d100fcf104786bf5e6234d63f.tar.gz
Project-Tick-a565cfa91e19352d100fcf104786bf5e6234d63f.zip
Replace conditional byte swapping with portable host/LE conversion
Diffstat (limited to 'insert_string_tpl.h')
-rw-r--r--insert_string_tpl.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/insert_string_tpl.h b/insert_string_tpl.h
index a5c3abf384..f8318e4e00 100644
--- a/insert_string_tpl.h
+++ b/insert_string_tpl.h
@@ -20,13 +20,7 @@
*/
#ifndef HASH_CALC_READ
-# if BYTE_ORDER == LITTLE_ENDIAN
-# define HASH_CALC_READ \
- val = zng_memread_4(strstart);
-# else
-# define HASH_CALC_READ \
- val = ZSWAP32(zng_memread_4(strstart));
-# endif
+# define HASH_CALC_READ val = Z_U32_FROM_LE(zng_memread_4(strstart));
#endif
/* ===========================================================================