Timeline for case-insensitive `strncmp()` for ASCII chars only (not UTF-8)
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 1, 2021 at 7:36 | comment | added | Lundin |
@chux-ReinstateMonica It would specifically be slightly slower on AVR, at least on most ABIs. int_fast8_t is indeed a good option.
|
|
Jan 31, 2021 at 2:15 | comment | added | chux |
"int return type is compatible with standard C, but unnecessarily slow on 8 bit MCUs. int8_t would give a performance gain." --> hmm, perhaps return int_fast8_t rather than "make specific MCU ports". IAC.Using an 8-bit return for strncmpci1() (if you meant that)increases OF/conversion concerns with those pesky characters outside the 0-127 range.
|
|
Jan 30, 2021 at 14:11 | comment | added | gberthiaume |
Why is tolower_fast completely non-portable? Is it non-portable for machines that encode strings in a non-ascii way?
|
|
Jan 29, 2021 at 10:41 | history | answered | Lundin | CC BY-SA 4.0 |