From b4aedb3ecc6830596575e9c2eff67f9cccfee92c Mon Sep 17 00:00:00 2001 From: Martin Fouilleul Date: Sun, 24 Sep 2023 11:15:08 +0200 Subject: [PATCH] adding __math_xflowf --- src/libc-shim/src/__math_xflowf.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/libc-shim/src/__math_xflowf.c diff --git a/src/libc-shim/src/__math_xflowf.c b/src/libc-shim/src/__math_xflowf.c new file mode 100644 index 0000000..000d311 --- /dev/null +++ b/src/libc-shim/src/__math_xflowf.c @@ -0,0 +1,8 @@ +#include "libm.h" + +float __math_xflowf(uint32_t sign, float y) +{ + // NOTE(orca): no fp barriers + // return eval_as_double(fp_barrier(sign ? -y : y) * y); + return eval_as_float((sign ? -y : y) * y); +}