This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
utf8.c: Change expression to be EBCDIC friendly
authorKarl Williamson <khw@cpan.org>
Thu, 14 Jun 2018 19:35:39 +0000 (13:35 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 5 Jul 2018 20:47:18 +0000 (14:47 -0600)
commit3720e27c222a10c00b5bafcbd08e6c8080535889
tree59b4962af63952e3ffde37e8f6fa322431557525
parent1aea41962eb1e71474326ea81164e1c80bfa9c62
utf8.c: Change expression to be EBCDIC friendly

This actually does two things: 1) it adds macros that evaluate to no
extra code on ASCII platforms, but allow things to work under EBCDIC;
and 2) it changes to use a ternary conditional.  This may not change
anything, or it may cause the compiler to generate slightly smaller
code at the expense of an extra addition instruction.  I am moving to
inlining this code, and want to make it smaller to enable that to
happen.
utf8.c