From: Dmitry Antipov <dmantipov@yandex.ru>
To: Alexey Dobriyan <adobriyan@gmail.com>, akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org, andriy.shevchenko@intel.com
Subject: Re: [PATCH -mm] kstrtox: delete division from inner parsing loop
Date: Fri, 3 Jul 2026 13:34:16 +0300 [thread overview]
Message-ID: <7d763f00-b394-4467-b4cd-5b0d994d794f@yandex.ru> (raw)
In-Reply-To: <20260703102550.501490-1-adobriyan@gmail.com>
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
prev parent reply other threads:[~2026-07-03 10:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-03 10:25 Alexey Dobriyan
2026-07-03 10:34 ` Dmitry Antipov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7d763f00-b394-4467-b4cd-5b0d994d794f@yandex.ru \
--to=dmantipov@yandex.ru \
--cc=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=andriy.shevchenko@intel.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®