This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Pass 'needs_swap' as a parameter to SHIFT_BYTES.
authorNicholas Clark <nick@ccl4.org>
Tue, 7 May 2013 14:22:08 +0000 (16:22 +0200)
committerNicholas Clark <nick@ccl4.org>
Mon, 20 May 2013 19:19:44 +0000 (21:19 +0200)
commitaaec8192358ffb8080ad85754ea9aeca93b06c8b
tree4d0123d375d590db29f091ef405274dae4b593ed
parent20aa3a3813ca2068a61ea9582e99df57cc735e62
Pass 'needs_swap' as a parameter to SHIFT_BYTES.

It feels wrong to have it as an implicit parameter sucked in via the textual
expansion of the macro. Whilst it can be derived from the parameter
'datumtype', it seems that the C compiler generates a lot less efficient code
that way.
pp_pack.c