summaryrefslogtreecommitdiff
path: root/pp_pack.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-05-06 18:43:26 +0200
committerNicholas Clark <nick@ccl4.org>2013-05-20 21:19:43 +0200
commite8fda8c499f46bb801215ff1dbea51c1f3007a6c (patch)
treebe185c5ba1dd7245cd902c81f5eafe8c7d186111 /pp_pack.c
parent7e38f754fea50c46f3571cd67982e061b3cf8304 (diff)
downloadperl-e8fda8c499f46bb801215ff1dbea51c1f3007a6c.tar.gz
DO_BO_{UN,}PACK can use my_swabn() directly.
This removes the only users of my_{be,le,h}to{be,le,h}n, so remove the definitions for those macros.
Diffstat (limited to 'pp_pack.c')
-rw-r--r--pp_pack.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pp_pack.c b/pp_pack.c
index 54a7a5c62c..d85eea20d9 100644
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -242,14 +242,14 @@ S_mul128(pTHX_ SV *sv, U8 m)
# define DO_BO_UNPACK(var, type) \
STMT_START { \
if (TYPE_ENDIANNESS(datumtype) == TYPE_IS_LITTLE_ENDIAN) { \
- my_letohn(&var, sizeof(var)); \
+ my_swabn(&var, sizeof(var)); \
} \
} STMT_END
# define DO_BO_PACK(var, type) \
STMT_START { \
if (TYPE_ENDIANNESS(datumtype) == TYPE_IS_LITTLE_ENDIAN) { \
- my_htolen(&var, sizeof(var)); \
+ my_swabn(&var, sizeof(var)); \
} \
} STMT_END
@@ -258,14 +258,14 @@ S_mul128(pTHX_ SV *sv, U8 m)
# define DO_BO_UNPACK(var, type) \
STMT_START { \
if (TYPE_ENDIANNESS(datumtype) == TYPE_IS_BIG_ENDIAN) { \
- my_betohn(&var, sizeof(var)); \
+ my_swabn(&var, sizeof(var)); \
} \
} STMT_END
# define DO_BO_PACK(var, type) \
STMT_START { \
if (TYPE_ENDIANNESS(datumtype) == TYPE_IS_BIG_ENDIAN) { \
- my_htoben(&var, sizeof(var)); \
+ my_swabn(&var, sizeof(var)); \
} \
} STMT_END