diff options
author | Nicholas Clark <nick@ccl4.org> | 2013-05-06 18:43:26 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2013-05-20 21:19:43 +0200 |
commit | e8fda8c499f46bb801215ff1dbea51c1f3007a6c (patch) | |
tree | be185c5ba1dd7245cd902c81f5eafe8c7d186111 /pp_pack.c | |
parent | 7e38f754fea50c46f3571cd67982e061b3cf8304 (diff) | |
download | perl-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |