This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Reduce repetition in FastCalc.xs by using ALIASes.
authorNicholas Clark <nick@ccl4.org>
Mon, 25 Oct 2010 08:24:06 +0000 (09:24 +0100)
committerNicholas Clark <nick@ccl4.org>
Mon, 25 Oct 2010 08:26:23 +0000 (09:26 +0100)
commit2d032f98e20bdaececd8548459379c3cf87746ec
treedacbbf89721bd12f671d83ac66420339d249bac5
parent251c9b20f5a22a32411b6c61f432b8b68a43eb29
Reduce repetition in FastCalc.xs by using ALIASes.

_one, _two and _ten are aliases to _zero
_is_odd is an alias of _is_even
_is_one, _is_two, _is_ten are aliases of _is_zero

On this system this reduces the object code size by about 4.5K (about 20%).
dist/Math-BigInt-FastCalc/FastCalc.pm
dist/Math-BigInt-FastCalc/FastCalc.xs