Re: [PATCH -mm] kstrtox: delete division from inner parsing loop
From: Dmitry Antipov
Date: Fri Jul 03 2026 - 07:14:16 EST
On 7/3/26 1:25 PM, Alexey Dobriyan wrote:
Overflow conditions can be checked on the fly resulting in at most
2 very predictable branches and zero division instructions:
_parse_integer_limit:
...
mov rax, rdx
mul rsi
seto bl
add rax, rcx
mov rdx, rax
setb al
Trust my word, there is a huge world beyond x86.
Dmitry