From: Sergey Kaplun via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Sergey Bronnikov <sergeyb@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH luajit 2/2] ARM: Make hard-float tobit conversions match JIT backend behavior.
Date: Fri, 24 Jul 2026 14:03:11 +0300 [thread overview]
Message-ID: <amNGb1-MsoZDpKwt@root> (raw)
In-Reply-To: <ebb0d5d9-b915-40f6-9792-b8b1a779f3a0@tarantool.org>
Hi, Sergey!
Thanks for the review!
Fixed your comment and force-pushed the branch.
On 24.07.26, Sergey Bronnikov wrote:
> Hello,
>
> thanks for the patch! LGTM with a minor comment
>
> Sergey
>
> On 7/21/26 17:53, Sergey Kaplun wrote:
> > From: Mike Pall <mike>
> >
> > Reported by Peter Cawley.
> >
> > (cherry picked from commit 32a683d226a3b57adbfeabff17d1ae0f7676545d)
> >
> > On the arm architecture, the `tobit()` function incorrectly truncates
> s/arm/ARM/
Fixed, thanks.
> > instead of rounding to the nearest integer. This leads to inconsistency
> > between various VMs (comparing to x86/x64, for example) and between the
> > arm VM and JIT.
> >
> > This patch uses an addition of 2^52 + 2^51 constant to the given
> > argument to convert it to the nearest integer value. After reading the
> > lowest 32 bits of the register, we get the expected result.
> >
> > The test is the same as for the previous commit.
> >
> > Sergey Kaplun:
> > * added the description for the problem
> >
> > Part of tarantool/tarantool#12880
> > ---
<snipped>
--
Best regards,
Sergey Kaplun
prev parent reply other threads:[~2026-07-24 11:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-21 14:53 [Tarantool-patches] [PATCH luajit 0/2] Fix tobit conversion on arm architectures Sergey Kaplun via Tarantool-patches
2026-07-21 14:53 ` [Tarantool-patches] [PATCH luajit 1/2] ARM64: Make tobit conversions match JIT backend behavior Sergey Kaplun via Tarantool-patches
2026-07-24 10:00 ` Sergey Bronnikov via Tarantool-patches
2026-07-24 10:59 ` Sergey Kaplun via Tarantool-patches
2026-07-21 14:53 ` [Tarantool-patches] [PATCH luajit 2/2] ARM: Make hard-float " Sergey Kaplun via Tarantool-patches
2026-07-24 10:02 ` Sergey Bronnikov via Tarantool-patches
2026-07-24 11:03 ` Sergey Kaplun via Tarantool-patches [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=amNGb1-MsoZDpKwt@root \
--to=tarantool-patches@dev.tarantool.org \
--cc=sergeyb@tarantool.org \
--cc=skaplun@tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH luajit 2/2] ARM: Make hard-float tobit conversions match JIT backend behavior.' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox