Proposal for Optimized Character Type Function
enh
enh@google.com
Sat Mar 1 21:24:37 GMT 2025
On Sat, Mar 1, 2025, 15:15 Florian Weimer <fw@deneb.enyo.de> wrote:
> * The Cuthour:
>
> > I am writing to propose an enhancement to the character type functions
> > such as isalpha(), isupper(), and islower() through the use of optimized
> > lookup tables. By using a single lookup table with bitwise operations,
> > we can achieve efficient and concise implementations for these
> > functions. Below is a brief overview of the proposed implementation:
>
> Isn't this basically what the current implementation does, via
> __ctype_b_loc? Per-thread state is required to support uselocale.
>
yeah, Android's ctype.h is ascii-only, so we can just inline an instruction
or two. (whereas wctype.h goes to icu.)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250301/e3430249/attachment.htm>
More information about the Libc-alpha
mailing list