[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] isxdigit conversion inconsistency with widechar
From: |
Thomas Preud'homme |
Subject: |
Re: [Tinycc-devel] isxdigit conversion inconsistency with widechar |
Date: |
Tue, 01 Jul 2014 22:14:43 +0800 |
User-agent: |
KMail/4.12.4 (Linux/3.14-1-amd64; KDE/4.13.1; x86_64; ; ) |
Le lundi 30 juin 2014, 15:03:35 Carlos Montiers a écrit :
>
> Yes. It is not a bug. But, I post this for the knowledge. I inspect
> mscvrt.dll and isxdigit internally call to _isctype. Then I think is more
> speedy call directly to _isctype instead of isxdigit. But the current macro
> of tiny c not call to it like the counterpart iswxdigit. Because it I post
> my little fix:
>
> #undef isxdigit
> #undef iswxdigit
> #define isxdigit(d) _isctype(d, _HEX)
> #define iswxdigit(d) iswctype(d, _HEX)
If you can provide number that shows it's indeed slower then it is indeed a
bug and someone might fix it someday. Else I doubt somebody will feel motivated
enough to change this (I might be wrong).
Best regards,
Thomas
signature.asc
Description: This is a digitally signed message part.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Tinycc-devel] isxdigit conversion inconsistency with widechar,
Thomas Preud'homme <=