projects
/
apple
/
libc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Libc-583.tar.gz
[apple/libc.git]
/
gdtoa
/
gdtoa-strtof-fbsd.c
diff --git
a/gdtoa/gdtoa-strtof-fbsd.c
b/gdtoa/gdtoa-strtof-fbsd.c
index b618031c2678cf3e29245e2be2bf8d6a64fac498..efb0286a0be913622877513827a01322bf201c12 100644
(file)
--- 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;
Long exp;
int k;
union { ULong L[1]; float f; } u;
- FPI *fpi = &fpi0, fpi1;
#ifdef Honor_FLT_ROUNDS
#ifdef Honor_FLT_ROUNDS
- int rounding = Flt_Rounds;
+#include "gdtoa_fltrnds.h"
+#else
+#define fpi &fpi0
#endif
NORMALIZE_LOCALE(loc);
#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:
k = strtodg(s, sp, fpi, &exp, bits, loc);
switch(k & STRTOG_Retmask) {
case STRTOG_NoNumber: