llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.61k stars 11.82k forks source link

Add proper long double is double double support to fpbits #113237

Open michaelrj-google opened 3 hours ago

michaelrj-google commented 3 hours ago

See: https://github.com/llvm/llvm-project/pull/113235

PowerPC uses double double as its long double type. We should add at least basic FPBits support for it. This will be complicated since the fractional part of the float isn't contiguous.

llvmbot commented 3 hours ago

@llvm/issue-subscribers-libc

Author: Michael Jones (michaelrj-google)

See: https://github.com/llvm/llvm-project/pull/113235 PowerPC uses double double as its long double type. We should add at least basic FPBits support for it. This will be complicated since the fractional part of the float isn't contiguous.
michaelrj-google commented 1 hour ago

Need to change it to 106, since that's what clang/ppc uses for ldbl mant bits