diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-12-27 16:39:27 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-12-27 16:39:27 +0000 |
commit | 52629237a522c7c146d788ddaaf69946fd2729f9 (patch) | |
tree | 552402b085cff37bc251fc0f45ed9255b53cdd57 /math/w_exp2f.c | |
parent | 3896c5809b49e72fbadc57da2189ff42aa2a5d02 (diff) | |
parent | 064374be911f72dfaec8a75f06da1f9fc1827712 (diff) |
Merge commit 'refs/top-bases/t/hurdsig-boot-fix' into t/hurdsig-boot-fix
Diffstat (limited to 'math/w_exp2f.c')
-rw-r--r-- | math/w_exp2f.c | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/math/w_exp2f.c b/math/w_exp2f.c index 61cbd6cda1..71aadce801 100644 --- a/math/w_exp2f.c +++ b/math/w_exp2f.c @@ -1,19 +1,8 @@ -/* - * wrapper exp2f(x) - */ - -#include <math.h> -#include <math_private.h> - -float -__exp2f (float x) -{ - float z = __ieee754_exp2f (x); - if (__builtin_expect (!isfinite (z) || z == 0, 0) - && isfinite (x) && _LIB_VERSION != _IEEE_) - /* exp2 overflow: 144, exp2 underflow: 145 */ - return __kernel_standard_f (x, x, 144 + !!signbit (x)); - - return z; -} -weak_alias (__exp2f, exp2f) +#include <math-type-macros-float.h> +#undef __USE_WRAPPER_TEMPLATE +#define __USE_WRAPPER_TEMPLATE 1 +#undef declare_mgen_alias +#define declare_mgen_alias(a, b) +#include <w_exp2_template.c> +versioned_symbol (libm, __exp2f, exp2f, GLIBC_2_27); +libm_alias_float_other (__exp2, exp2) |