X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/5f4d86c1219d56604890d932a3152b3b5dd15b55..34e8f8296870d0e8695f90e1a54240a589d41312:/gdtoa/gdtoa-strtof-fbsd.c diff --git a/gdtoa/gdtoa-strtof-fbsd.c b/gdtoa/gdtoa-strtof-fbsd.c index b618031..efb0286 100644 --- a/gdtoa/gdtoa-strtof-fbsd.c +++ b/gdtoa/gdtoa-strtof-fbsd.c @@ -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: