X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=libc-top-half%2Fmusl%2Fsrc%2Fmath%2Fsinh.c;h=8463abc7b6fd15b600822e39db23474102b8199d;hb=5879558;hp=00022c4e6ff6d8250ea238207a12199a1e349dac;hpb=5b148b6131f36770f110c24d61adfb1e17fea06a;p=wasi-libc.git diff --git a/libc-top-half/musl/src/math/sinh.c b/libc-top-half/musl/src/math/sinh.c index 00022c4..8463abc 100644 --- a/libc-top-half/musl/src/math/sinh.c +++ b/libc-top-half/musl/src/math/sinh.c @@ -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; }