diff options
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/dl-fptr.c | 2 | ||||
-rw-r--r-- | sysdeps/generic/s_nexttowardf.c | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/sysdeps/generic/dl-fptr.c b/sysdeps/generic/dl-fptr.c index 9768850846..32cf28c0ef 100644 --- a/sysdeps/generic/dl-fptr.c +++ b/sysdeps/generic/dl-fptr.c @@ -163,7 +163,7 @@ make_fdesc (ElfW(Addr) ip, ElfW(Addr) gp) } -static inline ElfW(Addr) * +static inline ElfW(Addr) * __attribute__ ((always_inline)) make_fptr_table (struct link_map *map) { const ElfW(Sym) *symtab diff --git a/sysdeps/generic/s_nexttowardf.c b/sysdeps/generic/s_nexttowardf.c index 1b3a2536ba..4f502c210e 100644 --- a/sysdeps/generic/s_nexttowardf.c +++ b/sysdeps/generic/s_nexttowardf.c @@ -22,6 +22,7 @@ #include "math.h" #include "math_private.h" +#include <float.h> #ifdef __STDC__ float __nexttowardf(float x, long double y) @@ -65,7 +66,13 @@ hx += 1; } hy = hx&0x7f800000; - if(hy>=0x7f800000) return x+x; /* overflow */ + if(hy>=0x7f800000) { + x = x+x; /* overflow */ + if (FLT_EVAL_METHOD != 0) + /* Force conversion to float. */ + asm ("" : "=m"(x) : "m"(x)); + return x; + } if(hy<0x00800000) { /* underflow */ float x2 = x*x; if(x2!=x) { /* raise underflow flag */ |