[PATCH] D53608: [builtins] Build float128 soft float builtins for x86_64.

Manoj Gupta via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 23 13:42:11 PDT 2018


manojgupta added inline comments.


================
Comment at: lib/builtins/fp_lib.h:107
+// __LDBL_MANT_DIG__ is set to 64 for x86_64.
+#if __LDBL_MANT_DIG__ == 113 || defined(__x86_64__)
 #define CRT_LDBL_128BIT
----------------
I really don't know  the accurate set of checks that should be used here, Please advise,


================
Comment at: lib/builtins/fp_lib.h:111
 typedef __int128_t srep_t;
-typedef long double fp_t;
+typedef __float128 fp_t;
 #define REP_C (__uint128_t)
----------------
Changed long double to  __float128 on Eli's advice in PR39376.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D53608





More information about the cfe-commits mailing list