mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <>
To: gzh2233 <>
Subject: Re: [musl] ld128 math function support
Date: Fri, 9 Dec 2022 22:30:15 +0100	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

* gzh2233 <> [2022-12-08 15:56:35 +0800]:
> I am trying to use ld128 in x86_64 musl and i have some problems.

that has multiple issues.

> Long double format is defined in arch/x86_64/bits/float.h and i am trying to
> change long double relevant macros. However, many long double functions
> still use double implementions(mostly "xxhl" functions). This is just a way to
> make musl compile and can be a problem in some cases. Simply changing
> the long double relevant macros can change ld80 into ld128 but this
> problem still exists. 
> Is there any official support for long double math functions?

musl does not support long double == float128 on x86_64.
this is part of the abi.

if you add a new abi variant where long double is float128,
that works but many float128 math functions have low quality
currently as you noticed. fixing this is significant effort.
i don't have immediate plans to fix this.

another option is to keep long double as is but add _Float128
support and f128 math functions (on all targets). such support
would require additional work and increase the size of

      reply	other threads:[~2022-12-09 21:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-08  7:56 gzh2233
2022-12-09 21:30 ` Szabolcs Nagy [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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* 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

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).