Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: 75122876d2e240d7aafe35db62c52dc639af3437
https://github.com/Perl/perl5/commit/75122876d2e240d7aafe35db62c52dc639af3437
Author: TAKAI Kousuke <[email protected]>
Date: 2021-12-09 (Thu, 09 Dec 2021)
Changed paths:
M pp.c
Log Message:
-----------
Replace SvUV_nomg(sv) with SvUVX(sv) in pp_abs.
Under the conditions SvIOK(sv) and SvIsUV(sv), SvUV_nomg(sv) is
equivalent to SvUVX(sv). This change will eliminate unreachable code
and may save a few dozen bytes of code size.
Commit: 6f14d737160321a4a1a0db2950833b64a317d637
https://github.com/Perl/perl5/commit/6f14d737160321a4a1a0db2950833b64a317d637
Author: TAKAI Kousuke <[email protected]>
Date: 2021-12-09 (Thu, 09 Dec 2021)
Changed paths:
M pp.c
Log Message:
-----------
Unify SETu() calls in pp_abs.
SETu() is a relatively complex macro and calling it in multiple places
will lead bloating of compiled code. Unifying them with intermediate
variable may save a few hundred bytes.
Commit: 51c06fb2bfe238bf76b0ec0da3175c04f4bea2f2
https://github.com/Perl/perl5/commit/51c06fb2bfe238bf76b0ec0da3175c04f4bea2f2
Author: TAKAI Kousuke <[email protected]>
Date: 2021-12-09 (Thu, 09 Dec 2021)
Changed paths:
M pp.c
Log Message:
-----------
Simplify IV abs operation in pp_abs.
Transforming -iv into "(UV)-(iv + 1) + 1" can avoid signed integer
overflow even if iv was IV_MIN in 2's compelement representation
(as long as iv < 0), so that it makes special treatment for IV_MIN
unnecessary and saves one conditional jump.
Compare: https://github.com/Perl/perl5/compare/c89cba650a81...51c06fb2bfe2