summaryrefslogtreecommitdiff
path: root/src/math/__math_divzerof.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/__math_divzerof.c')
-rw-r--r--src/math/__math_divzerof.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/math/__math_divzerof.c b/src/math/__math_divzerof.c
new file mode 100644
index 00000000..ce046f3e
--- /dev/null
+++ b/src/math/__math_divzerof.c
@@ -0,0 +1,6 @@
+#include "libm.h"
+
+float __math_divzerof(uint32_t sign)
+{
+ return fp_barrierf(sign ? -1.0f : 1.0f) / 0.0f;
+}