Skip to content

Conversation

ZERICO2005
Copy link
Contributor

@ZERICO2005 ZERICO2005 commented Sep 23, 2025

Changes:

  • Implemented atoi, atol, atoll, strtol, and strtoul in assembly.
  • Fixed negative unsigned overflow in strtoull.
  • Optimized llmulu_b
CC per digit
atoi   :    21F +  4R +  3W +  1
atol   :    32F +  4R +  3W +  1
strtol : 79-85F + 13R + 12W + 21

atoi, atol, and atoll now have their own dedicated routines which offer a good performance boost compared to wrapping strtol/strtoll. This is because they don't need to track endptr or overflow, and they only work with base 10.

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.

1 participant