diff --git a/libc-top-half/musl/src/math/sinh.c b/libc-top-half/musl/src/math/sinh.c index 8463abc7b..c8dda8d68 100644 --- a/libc-top-half/musl/src/math/sinh.c +++ b/libc-top-half/musl/src/math/sinh.c @@ -37,7 +37,7 @@ double sinh(double x) #ifdef __wasilibc_unmodified_upstream // Wasm doesn't have alternate rounding modes t = __expo2(absx, 2*h); #else - t = __expo2(absx); + t = 2*h*__expo2(absx); #endif return t; } diff --git a/libc-top-half/musl/src/math/sinhf.c b/libc-top-half/musl/src/math/sinhf.c index 1fcd27a06..3ac49e218 100644 --- a/libc-top-half/musl/src/math/sinhf.c +++ b/libc-top-half/musl/src/math/sinhf.c @@ -29,7 +29,7 @@ float sinhf(float x) #ifdef __wasilibc_unmodified_upstream // Wasm doesn't have alternate rounding modes t = __expo2f(absx, 2*h); #else - t = __expo2f(absx); + t = 2*h*__expo2f(absx); #endif return t; }