From 4f893997e4738faf6dde8320b304298340f51cd2 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Mon, 29 Jun 2020 17:14:42 +0000 Subject: math: add __math_invalidl for targets where long double is different from double. --- src/math/__math_invalidl.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/math/__math_invalidl.c (limited to 'src/math/__math_invalidl.c') 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 +#include "libm.h" + +#if LDBL_MANT_DIG != DBL_MANT_DIG +long double __math_invalidl(long double x) +{ + return (x - x) / (x - x); +} +#endif -- cgit v1.2.1