MUSL math functions

David Chisnall theraven at
Sun Nov 10 10:05:31 UTC 2013

On 8 Nov 2013, at 08:50, David Schultz <das at FreeBSD.ORG> wrote:

> However, several things have happened since then. For one, years
> have passed and there's still quite a bit of work to do. For two,
> the only ld128 platform, sparc64, doesn't look as important as it
> used to be. For a long time, we had trouble even finding a viable
> test machine. Therefore, I think any incremental improvement would
> be welcome -- even if it means doing ld80 only.

The PowerPC SysV ABI says that it's ld128 - we only use 64 bit because of lack of compiler support when the architecture was brought up, every other OS uses 128 bit (although I think PPC 128-bit floats are not quite the same as IEEE 128-bit floats, which may cause some problems).  It's quite likely that we'll change it to ld128 at some point, although that will involve some ABI breakage which is unfortunate.  

ARMv8 is ld128 and, although it support hasn't landed yet (it's under development), it is likely to be a very important platform for FreeBSD in coming years.

MIPS is also ld128 on most systems, but the fact that there is no 128-bit floating point hardware for MIPS (except in one ASE, where there is one 128-bit floating point accumulator register) makes this quite a silly choice, so it will probably stay ld64.


More information about the freebsd-numerics mailing list