]> git.proxmox.com Git - wasi-libc.git/blobdiff - libc-top-half/musl/src/math/sinh.c
Update to musl 1.2.1. (#222)
[wasi-libc.git] / libc-top-half / musl / src / math / sinh.c
index 00022c4e6ff6d8250ea238207a12199a1e349dac..8463abc7b6fd15b600822e39db23474102b8199d 100644 (file)
@@ -34,6 +34,10 @@ double sinh(double x)
 
        /* |x| > log(DBL_MAX) or nan */
        /* note: the result is stored to handle overflow */
-       t = 2*h*__expo2(absx);
+#ifdef __wasilibc_unmodified_upstream // Wasm doesn't have alternate rounding modes
+       t = __expo2(absx, 2*h);
+#else
+       t = __expo2(absx);
+#endif
        return t;
 }