Message ID | alpine.DEB.2.20.1710311602270.4581@digraph.polyomino.org.uk |
---|---|
State | New |
Headers | show |
Series | Adjust __MATH_EVAL_FMT2 definition to handle _Float16 better [committed] | expand |
diff --git a/math/math.h b/math/math.h index 125d845..326fd8e 100644 --- a/math/math.h +++ b/math/math.h @@ -1144,6 +1144,8 @@ iszero (__T __val) # define __MATH_EVAL_FMT2(x, y) ((x) + (y) + 0.0L) # elif __FLT_EVAL_METHOD__ == 1 || __FLT_EVAL_METHOD__ > 32 # define __MATH_EVAL_FMT2(x, y) ((x) + (y) + 0.0) +# elif __FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32 +# define __MATH_EVAL_FMT2(x, y) ((x) + (y) + 0.0f) # else # define __MATH_EVAL_FMT2(x, y) ((x) + (y)) # endif