diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-12-01 10:43:39 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-12-03 10:05:23 -0700 |
commit | a6d8b88bddcbdbfbc01813a3db383b5f5412e8b1 (patch) | |
tree | 27459f6f18c4c02c12a82900b9ec316a036da873 /utf8.c | |
parent | 77806deadcc5dd84c2a61471c46ddee174f21a2d (diff) | |
download | perl-a6d8b88bddcbdbfbc01813a3db383b5f5412e8b1.tar.gz |
utf8.c: Use U8 instead of UV in several places
These temporaries are all known to fit into 8 bits; by using a U8 it
should be more obvious to an optimizing compiler, and so the bounds
checking need not be done.
Diffstat (limited to 'utf8.c')
-rw-r--r-- | utf8.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2587,7 +2587,7 @@ Perl__to_utf8_upper_flags(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp, const bool } else if UTF8_IS_DOWNGRADEABLE_START(*p) { if (flags) { - UV c = TWO_BYTE_UTF8_TO_NATIVE(*p, *(p+1)); + U8 c = TWO_BYTE_UTF8_TO_NATIVE(*p, *(p+1)); result = toUPPER_LC(c); } else { @@ -2654,7 +2654,7 @@ Perl__to_utf8_title_flags(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp, const bool } else if UTF8_IS_DOWNGRADEABLE_START(*p) { if (flags) { - UV c = TWO_BYTE_UTF8_TO_NATIVE(*p, *(p+1)); + U8 c = TWO_BYTE_UTF8_TO_NATIVE(*p, *(p+1)); result = toUPPER_LC(c); } else { @@ -2719,7 +2719,7 @@ Perl__to_utf8_lower_flags(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp, const bool } else if UTF8_IS_DOWNGRADEABLE_START(*p) { if (flags) { - UV c = TWO_BYTE_UTF8_TO_NATIVE(*p, *(p+1)); + U8 c = TWO_BYTE_UTF8_TO_NATIVE(*p, *(p+1)); result = toLOWER_LC(c); } else { @@ -2798,7 +2798,7 @@ Perl__to_utf8_fold_flags(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp, U8 flags, b } else if UTF8_IS_DOWNGRADEABLE_START(*p) { if (flags & FOLD_FLAGS_LOCALE) { - UV c = TWO_BYTE_UTF8_TO_NATIVE(*p, *(p+1)); + U8 c = TWO_BYTE_UTF8_TO_NATIVE(*p, *(p+1)); result = toFOLD_LC(c); } else { |