This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
utf8.h: Remove a branch in macro for Unicode surrogates
authorKarl Williamson <khw@cpan.org>
Sat, 7 Nov 2015 17:32:54 +0000 (10:32 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 6 Dec 2015 05:33:40 +0000 (22:33 -0700)
commit2d6b3d38ed7360c713904801933387b869b7a031
treed71b9e3d6d4b1bfdd7d8d756d6620ea56d4344bd
parent646d1759be794fc27ea2be7a051b20a1d6cab7ca
utf8.h: Remove a branch in macro for Unicode surrogates

By masking, this macro can be written so it only has one branch.
Presumably an optimizing compiler would do the same, but not necessarily
so.
utf8.h