From: Markus Wichmann <nullplan@gmx.net>
To: musl@lists.openwall.com
Cc: Damian McGuckin <damianm@esi.com.au>
Subject: Re: [musl] roundf() (and round(), and ...)
Date: Tue, 25 Jun 2024 21:09:52 +0200 [thread overview]
Message-ID: <ZnsWAIkEITHMZJRm@voyager> (raw)
In-Reply-To: <19361e3c-8d13-af73-7896-bc4665e9788f@esi.com.au>
Am Tue, Jun 25, 2024 at 01:41:45PM +1000 schrieb Damian McGuckin:
> My
> modifications assumes that a call likes 'fabsf' is inlined to assembler
> which I hope we can assume is the rule these days.
>
If GCC is working according to the documentation, then not inside of
musl at the moment. These inlinings happen when a builtin instrinsic
is lowered into an assembler instruction, and by default, fabs* is
recognized as a builtin. But not when building musl, because musl builds
with -ffreestanding, which includes -fno-builtin.
Rich has stated he wants to work around that with an
implementation-internal header file that defines macros such as
#define fabs(x) __builtin_fabs(x)
But as far as I can tell, this hasn't happened yet.
Ciao,
Markus
next prev parent reply other threads:[~2024-06-25 19:10 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-17 1:48 Damian McGuckin
2024-06-18 12:23 ` Szabolcs Nagy
2024-06-18 12:40 ` Damian McGuckin
2024-06-19 7:09 ` Damian McGuckin
2024-06-19 8:17 ` Damian McGuckin
2024-06-19 18:58 ` Szabolcs Nagy
2024-06-19 23:20 ` Rich Felker
2024-06-21 8:12 ` Damian McGuckin
2024-06-21 8:16 ` Damian McGuckin
2024-06-23 18:33 ` Rich Felker
2024-06-25 3:41 ` Damian McGuckin
2024-06-25 19:09 ` Markus Wichmann [this message]
2024-06-25 22:24 ` Damian McGuckin
2024-06-25 22:28 ` enh
2024-06-25 23:35 ` Rich Felker
2024-06-26 10:36 ` enh
2024-06-26 15:23 ` Rich Felker
2024-06-26 1:49 ` Thorsten Glaser
2024-06-26 3:19 ` Markus Wichmann
2024-06-26 3:43 ` Thorsten Glaser
2024-06-26 14:11 ` Markus Wichmann
2024-06-26 15:25 ` Rich Felker
2024-06-30 4:32 ` Damian McGuckin
2024-06-26 10:38 ` enh
2024-06-25 22:55 ` Damian McGuckin
2024-06-25 23:37 ` Rich Felker
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=ZnsWAIkEITHMZJRm@voyager \
--to=nullplan@gmx.net \
--cc=damianm@esi.com.au \
--cc=musl@lists.openwall.com \
/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.
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).