math: add double precision error handling functions

This commit is contained in:
Szabolcs Nagy authored and Rich Felker committed 2019-04-17 13:08:45 -04:00
1 parent 9ef6ca4235
commit 4f8acf953c
6 files changed
+35

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
#include "libm.h"
double __math_divzero(uint32_t sign)
{
return fp_barrier(sign ? -1.0 : 1.0) / 0.0;
}