diff options
author | Szabolcs Nagy <nsz@port70.net> | 2020-06-29 17:14:42 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-08-05 23:05:57 -0400 |
commit | 4f893997e4738faf6dde8320b304298340f51cd2 (patch) | |
tree | 4595a3fb015213bff29ab4fb759486fd68596d6f /src/math | |
parent | b1756ec8848623b5ec5ca8f6705832323176e0cb (diff) | |
download | musl-4f893997e4738faf6dde8320b304298340f51cd2.tar.gz musl-4f893997e4738faf6dde8320b304298340f51cd2.tar.bz2 musl-4f893997e4738faf6dde8320b304298340f51cd2.tar.xz musl-4f893997e4738faf6dde8320b304298340f51cd2.zip |
math: add __math_invalidl
for targets where long double is different from double.
Diffstat (limited to 'src/math')
-rw-r--r-- | src/math/__math_invalidl.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/math/__math_invalidl.c b/src/math/__math_invalidl.c new file mode 100644 index 00000000..1fca99de --- /dev/null +++ b/src/math/__math_invalidl.c @@ -0,0 +1,9 @@ +#include <float.h> +#include "libm.h" + +#if LDBL_MANT_DIG != DBL_MANT_DIG +long double __math_invalidl(long double x) +{ + return (x - x) / (x - x); +} +#endif |