Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <kq7ozupkdpannvt6fxnltuap4bhesjot5sbqhnwe5hpvey7nht@qj3jonh36ngt>
Date: Wed, 17 Apr 2024 01:25:18 +0000
From: NRK <nrk@...root.org>
To: musl@...ts.openwall.com
Cc: Viktor Reznov <yann.collet.is.not.a.perfectionist@...il.com>
Subject: Re: [PATCH] Decreasing the number of divisions

> I played around with this change on godbolt: https://godbolt.org/z/9PoGK9zae

You're looking at clang -O3, if you use gcc -Os (usual for musl
users/distros) you'll notice that gcc actually ends up emitting a div
instruction, which are known to be slow.

But I don't think trying to optimize around gcc's bad codegen is the
right move. It's better to just not use -Os with gcc. Which musl already
does since commit b90841e25832.

- NRK

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.