diff options
author | Szabolcs Nagy <nsz@port70.net> | 2018-11-30 21:15:23 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019-04-17 13:08:45 -0400 |
commit | 4f8acf953ccf1a978a3378db7fb1e8d5a7afbca1 (patch) | |
tree | c007aa592fe012925b1679dc9dfef34f7b9671c5 /src/math/__math_invalid.c | |
parent | 9ef6ca4235b7a66aefa432295c02b4df64a53f2e (diff) | |
download | musl-4f8acf953ccf1a978a3378db7fb1e8d5a7afbca1.tar.gz |
math: add double precision error handling functions
Diffstat (limited to 'src/math/__math_invalid.c')
-rw-r--r-- | src/math/__math_invalid.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/math/__math_invalid.c b/src/math/__math_invalid.c new file mode 100644 index 00000000..17740490 --- /dev/null +++ b/src/math/__math_invalid.c @@ -0,0 +1,6 @@ +#include "libm.h" + +double __math_invalid(double x) +{ + return (x - x) / (x - x); +} |