Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strncasecmp fix and optimizations #480

Merged
merged 2 commits into from
Mar 19, 2024
Merged

strncasecmp fix and optimizations #480

merged 2 commits into from
Mar 19, 2024

Conversation

calc84maniac
Copy link
Contributor

Fixes #479 with a new strncasecmp implementation.

Removes linking to OS versions of tolower/toupper which return the wrong value for EOF, and adds internal entrypoints to the toolchain versions to avoid C ABI overhead.

Also adds an optimized version of strcasecmp, which shares some code with the new strncasecmp for size optimization.

src/libc/tolower.src Show resolved Hide resolved
@mateoconlechuga mateoconlechuga merged commit 62417f3 into master Mar 19, 2024
7 checks passed
@mateoconlechuga mateoconlechuga deleted the strncasecmp-fix branch March 19, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect behavior in strncasecmp and TI-OS implementations of tolower/toupper
2 participants