mirror of
https://github.com/fluencelabs/musl
synced 2025-06-21 18:51:52 +00:00
support alternate glibc name pow10 for exp10
This commit is contained in:
@ -391,6 +391,9 @@ long double ynl(int, long double);
|
|||||||
double exp10(double);
|
double exp10(double);
|
||||||
float exp10f(float);
|
float exp10f(float);
|
||||||
long double exp10l(long double);
|
long double exp10l(long double);
|
||||||
|
double pow10(double);
|
||||||
|
float pow10f(float);
|
||||||
|
long double pow10l(long double);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include "libc.h"
|
||||||
|
|
||||||
double exp10(double x)
|
double exp10(double x)
|
||||||
{
|
{
|
||||||
@ -17,3 +18,5 @@ double exp10(double x)
|
|||||||
}
|
}
|
||||||
return pow(10.0, x);
|
return pow(10.0, x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
weak_alias(exp10, pow10);
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include "libc.h"
|
||||||
|
|
||||||
float exp10f(float x)
|
float exp10f(float x)
|
||||||
{
|
{
|
||||||
@ -15,3 +16,5 @@ float exp10f(float x)
|
|||||||
}
|
}
|
||||||
return exp2(3.32192809488736234787031942948939 * x);
|
return exp2(3.32192809488736234787031942948939 * x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
weak_alias(exp10f, pow10f);
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include "libc.h"
|
||||||
|
|
||||||
long double exp10l(long double x)
|
long double exp10l(long double x)
|
||||||
{
|
{
|
||||||
@ -17,3 +18,5 @@ long double exp10l(long double x)
|
|||||||
}
|
}
|
||||||
return powl(10.0, x);
|
return powl(10.0, x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
weak_alias(exp10l, pow10l);
|
||||||
|
Reference in New Issue
Block a user