]> git.saurik.com Git - apple/libc.git/blobdiff - gdtoa/gdtoa-strtof-fbsd.c
Libc-583.tar.gz
[apple/libc.git] / gdtoa / gdtoa-strtof-fbsd.c
index b618031c2678cf3e29245e2be2bf8d6a64fac498..efb0286a0be913622877513827a01322bf201c12 100644 (file)
@@ -45,19 +45,13 @@ strtof_l(CONST char *s, char **sp, locale_t loc)
        Long exp;
        int k;
        union { ULong L[1]; float f; } u;
-       FPI *fpi = &fpi0, fpi1;
 #ifdef Honor_FLT_ROUNDS
-       int rounding = Flt_Rounds;
+#include "gdtoa_fltrnds.h"
+#else
+#define fpi &fpi0
 #endif
 
        NORMALIZE_LOCALE(loc);
-#ifdef Honor_FLT_ROUNDS
-       if (rounding != fpi0.rounding) {
-               fpi1 = fpi0; /* for thread safety */
-               fpi1.rounding = rounding;
-               fpi = &fpi1;
-               }
-#endif /* Honor_FLT_ROUNDS */
        k = strtodg(s, sp, fpi, &exp, bits, loc);
        switch(k & STRTOG_Retmask) {
          case STRTOG_NoNumber: