mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[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:
@@ -12,7 +12,6 @@ objs += $(addprefix liba/src/, \
|
||||
fpclassify.o \
|
||||
fpclassifyf.o \
|
||||
ieee754.o \
|
||||
ldexp.o \
|
||||
malloc.o \
|
||||
memcmp.o \
|
||||
memcpy.o \
|
||||
|
||||
@@ -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)
|
||||
|
||||
1
liba/src/external/openbsd/include/math.h
vendored
1
liba/src/external/openbsd/include/math.h
vendored
@@ -61,7 +61,6 @@
|
||||
#undef fabs
|
||||
#undef floor
|
||||
#undef fmod
|
||||
#undef ldexp
|
||||
#undef lgamma
|
||||
#undef lgamma_r
|
||||
#undef log
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user