[libc-commits] [libc] [libc] Stub handling for the PPC double double type (PR #136614)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Tue Apr 22 13:29:23 PDT 2025


================
@@ -818,7 +830,8 @@ struct FPBits final : public internal::FPRepImpl<get_fp_type<T>(), FPBits<T>> {
   static_assert(cpp::is_floating_point_v<T>,
                 "FPBits instantiated with invalid type.");
   using UP = internal::FPRepImpl<get_fp_type<T>(), FPBits<T>>;
-  using StorageType = typename UP::StorageType;
+  using StorageType =
+      typename internal::FPLayout<get_fp_type<T>()>::StorageType;
----------------
jhuber6 wrote:

Conceptually no, but there's no user of those functions yet and it is non-trivial. I'm not a floating point expert and didn't want to spend a few days double checking the binary format of PPC's double just to close this bug report.

https://github.com/llvm/llvm-project/pull/136614


More information about the libc-commits mailing list