summaryrefslogtreecommitdiff
path: root/lib/libc/arch/vax/gdtoa/strtof.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/arch/vax/gdtoa/strtof.c')
-rw-r--r--lib/libc/arch/vax/gdtoa/strtof.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/arch/vax/gdtoa/strtof.c b/lib/libc/arch/vax/gdtoa/strtof.c
index f0472c2558d..7ae20c2f894 100644
--- a/lib/libc/arch/vax/gdtoa/strtof.c
+++ b/lib/libc/arch/vax/gdtoa/strtof.c
@@ -38,13 +38,18 @@ strtof(s, sp) CONST char *s; char **sp;
strtof(CONST char *s, char **sp)
#endif
{
- static FPI fpi = { 24, 1-128-1-24+1, 255-128-1-24+1, 1, SI };
+ static FPI fpi0 = { 24, 1-128-1-24+1, 255-128-1-24+1, 1, SI };
ULong bits[1];
Long exp;
int k;
union { ULong L[1]; float f; } u;
+#ifdef Honor_FLT_ROUNDS
+#include "gdtoa_fltrnds.h"
+#else
+#define fpi &fpi0
+#endif
- k = strtodg(s, sp, &fpi, &exp, bits);
+ k = strtodg(s, sp, fpi, &exp, bits);
switch(k & STRTOG_Retmask) {
case STRTOG_NoNumber:
case STRTOG_Zero: