[liba] Fixed Gamma function bug.

There was a problem with the definition of ldexp, used in b_log__D.c

Change-Id: I83d012815e38b76efa730c1a3d259ec276e15f11
This commit is contained in:
Léa Saviot
2017-11-14 10:08:21 +01:00
committed by Romain Goyet
parent 5cc9aa53f2
commit fe3d470d2d
4 changed files with 1 additions and 12 deletions

View File

@@ -12,7 +12,6 @@ objs += $(addprefix liba/src/, \
fpclassify.o \
fpclassifyf.o \
ieee754.o \
ldexp.o \
malloc.o \
memcmp.o \
memcpy.o \

View File

@@ -178,7 +178,7 @@ double trunc(double x);
#define fabs(x) __builtin_fabs(x)
#define floor(x) __builtin_floor(x)
#define fmod(x, y) __builtin_fmod(x, y)
#define ldexp(x, n) __builtin_ldexp(x, n)
#define ldexp(x, n) __builtin_scalbn(x, n)
#define lgamma(x) __builtin_lgamma(x)
#define lgamma_r(x, signgamp) __builtin_lgamma_r(x, signgamp)
#define log(x) __builtin_log(x)

View File

@@ -61,7 +61,6 @@
#undef fabs
#undef floor
#undef fmod
#undef ldexp
#undef lgamma
#undef lgamma_r
#undef log

View File

@@ -1,9 +0,0 @@
#include <math.h>
#undef ldexp
// For some reason, OpenBSD's libm defines ldexpf but doesn't define ldexp
double ldexp(double x, int n) {
return scalbn(x, n);
}