* [musl] scalbn.c and friends
@ 2023-07-24 0:20 Damian McGuckin
0 siblings, 0 replies; only message in thread
From: Damian McGuckin @ 2023-07-24 0:20 UTC (permalink / raw)
To: musl
Probably more an FYI only:
I took some of the logic from an unrelated task to make a change to the
code which involved biasing the exponent a little earlier than it is done
currently for the case of a highly negative 2nd argument.
Using Godbolt, and -O3, the lines of assembler dropped somewhat for the
newer code
CPU/Compiler OLD => NEW
ARM gcc 13 47 -> 36
Power64 gcc 13 50 -> 42
X86 gcc 13 42 -> 35
Performance with my test machine, GCC 11 on X86, remains the same. So no
speed gain. Not that it is doing much computation.
I assume that it is not worth touching this routine.
But the drop in LOC was interesting. Probably just means that optimizing
compilers are getting better which is not news to anybody
- Damian
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-24 0:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-24 0:20 [musl] scalbn.c and friends Damian McGuckin
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).