1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Move wrappers to libm-compat-calls-auto

This commit moves one step towards the deprecation of wrappers that
use _LIB_VERSION / matherr / __kernel_standard functionality, by
adding the suffix '_compat' to their filenames and adjusting Makefiles
and #includes accordingly.

New template wrappers that do not use such functionality will be added
by future patches and will be first used by the float128 wrappers.
This commit is contained in:
Gabriel F. T. Gomes
2016-12-13 22:42:51 -02:00
parent 811de1a688
commit f67d78192c
191 changed files with 474 additions and 66 deletions

View File

@ -1,19 +0,0 @@
/*
* 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)