Message196788
| Author |
lemburg |
| Recipients |
ezio.melotti, gvanrossum, kennyluck, lemburg, loewis, serhiy.storchaka, tchrist, vstinner |
| Date |
2013年09月02日.15:53:23 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<5224B471.3080809@egenix.com> |
| In-reply-to |
<1378136048.08.0.601314131306.issue12892@psf.upfronthosting.co.za> |
| Content |
You should be able to squeeze out some extra cycles by
avoiding the bit calculations using a simple range check
for ch >= 0xd800:
+# if STRINGLIB_MAX_CHAR >= 0xd800
+ if (((ch1 ^ 0xd800) &
+ (ch1 ^ 0xd800) &
+ (ch1 ^ 0xd800) &
+ (ch1 ^ 0xd800) & 0xf800) == 0)
+ break;
+# endif |
|