From: Bartosz Kosiorek <gang65@poczta.onet.pl> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59453 --- dlls/msvcp100/msvcp100.spec | 4 ++-- dlls/msvcp110/msvcp110.spec | 4 ++-- dlls/msvcp120/msvcp120.spec | 4 ++-- dlls/msvcp120_app/msvcp120_app.spec | 4 ++-- dlls/msvcp140/msvcp140.spec | 4 ++-- dlls/msvcp60/msvcp60.spec | 8 ++++---- dlls/msvcp70/msvcp70.spec | 8 ++++---- dlls/msvcp71/msvcp71.spec | 8 ++++---- dlls/msvcp80/msvcp80.spec | 8 ++++---- dlls/msvcp90/math.c | 14 ++++++++++++++ dlls/msvcp90/msvcp90.spec | 8 ++++---- dlls/msvcp_win/msvcp_win.spec | 4 ++-- 12 files changed, 46 insertions(+), 32 deletions(-) diff --git a/dlls/msvcp100/msvcp100.spec b/dlls/msvcp100/msvcp100.spec index a04abccc306..9c52471d9bb 100644 --- a/dlls/msvcp100/msvcp100.spec +++ b/dlls/msvcp100/msvcp100.spec @@ -3837,14 +3837,14 @@ @ cdecl -ret64 -arch=arm ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAA_JPB_W_J@Z(ptr wstr int64) basic_streambuf_wchar_xsputn @ thiscall -ret64 -arch=i386 ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAE_JPB_W_J@Z(ptr wstr int64) basic_streambuf_wchar_xsputn @ cdecl -arch=win64 ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEB_W_J@Z(ptr wstr int64) basic_streambuf_wchar_xsputn -@ stub _Cosh +@ cdecl _Cosh(double double) @ extern _Denorm @ stub _Dnorm @ cdecl _Dscale(ptr long) @ cdecl _Dtest(ptr) @ extern _Eps @ cdecl _Exp(ptr double long) -@ stub _FCosh +@ cdecl _FCosh(float float) @ extern _FDenorm @ stub _FDnorm @ cdecl _FDscale(ptr long) diff --git a/dlls/msvcp110/msvcp110.spec b/dlls/msvcp110/msvcp110.spec index 3543813acf4..aba20f05008 100644 --- a/dlls/msvcp110/msvcp110.spec +++ b/dlls/msvcp110/msvcp110.spec @@ -3738,7 +3738,7 @@ @ cdecl _Cnd_timedwait(ptr ptr ptr) @ cdecl _Cnd_unregister_at_thread_exit(ptr) @ cdecl _Cnd_wait(ptr ptr) -@ stub _Cosh +@ cdecl _Cosh(double double) @ extern _Denorm @ stub _Dint @ stub _Dnorm @@ -3749,7 +3749,7 @@ @ stub _Dunscale @ extern _Eps @ cdecl _Exp(ptr double long) -@ stub _FCosh +@ cdecl _FCosh(float float) @ extern _FDenorm @ stub _FDint @ stub _FDnorm diff --git a/dlls/msvcp120/msvcp120.spec b/dlls/msvcp120/msvcp120.spec index 8e4d62ba7ac..97e55d6d8e4 100644 --- a/dlls/msvcp120/msvcp120.spec +++ b/dlls/msvcp120/msvcp120.spec @@ -3679,7 +3679,7 @@ @ cdecl _Cnd_timedwait(ptr ptr ptr) @ cdecl _Cnd_unregister_at_thread_exit(ptr) @ cdecl _Cnd_wait(ptr ptr) -@ stub _Cosh +@ cdecl _Cosh(double double) @ extern _Denorm @ stub _Dint @ stub _Dnorm @@ -3690,7 +3690,7 @@ @ stub _Dunscale @ extern _Eps @ cdecl _Exp(ptr double long) -@ stub _FCosh +@ cdecl _FCosh(float float) @ extern _FDenorm @ stub _FDint @ stub _FDnorm diff --git a/dlls/msvcp120_app/msvcp120_app.spec b/dlls/msvcp120_app/msvcp120_app.spec index 1a3eb317ab6..8f80ee05284 100644 --- a/dlls/msvcp120_app/msvcp120_app.spec +++ b/dlls/msvcp120_app/msvcp120_app.spec @@ -3679,7 +3679,7 @@ @ cdecl _Cnd_timedwait(ptr ptr ptr) msvcp120._Cnd_timedwait @ cdecl _Cnd_unregister_at_thread_exit(ptr) msvcp120._Cnd_unregister_at_thread_exit @ cdecl _Cnd_wait(ptr ptr) msvcp120._Cnd_wait -@ stub _Cosh +@ cdecl _Cosh(double double) msvcp120._Cosh @ extern _Denorm msvcp120._Denorm @ stub _Dint @ stub _Dnorm @@ -3690,7 +3690,7 @@ @ stub _Dunscale @ extern _Eps msvcp120._Eps @ cdecl _Exp(ptr double long) msvcp120._Exp -@ stub _FCosh +@ cdecl _FCosh(float float) msvcp120._FCosh @ extern _FDenorm msvcp120._FDenorm @ stub _FDint @ stub _FDnorm diff --git a/dlls/msvcp140/msvcp140.spec b/dlls/msvcp140/msvcp140.spec index 700384359a0..15e828b186d 100644 --- a/dlls/msvcp140/msvcp140.spec +++ b/dlls/msvcp140/msvcp140.spec @@ -3634,14 +3634,14 @@ @ cdecl _Cnd_unregister_at_thread_exit(ptr) @ cdecl _Cnd_wait(ptr ptr) @ cdecl _Copy_file(wstr wstr) -@ stub _Cosh +@ cdecl _Cosh(double double) @ cdecl _Current_get(ptr) @ cdecl _Current_set(wstr) tr2_sys__Current_set_wchar @ extern _Denorm @ cdecl _Dtest(ptr) @ cdecl _Equivalent(wstr wstr) _Equivalent @ cdecl _Exp(ptr double long) -@ stub _FCosh +@ cdecl _FCosh(float float) @ extern _FDenorm @ cdecl _FDtest(ptr) @ cdecl _FExp(ptr float long) diff --git a/dlls/msvcp60/msvcp60.spec b/dlls/msvcp60/msvcp60.spec index c3b0a6e764c..a213c4d4257 100644 --- a/dlls/msvcp60/msvcp60.spec +++ b/dlls/msvcp60/msvcp60.spec @@ -2574,8 +2574,8 @@ @ cdecl -arch=arm ?_Copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAAXI@Z(ptr long) basic_string_wchar__Copy @ thiscall -arch=i386 ?_Copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEXI@Z(ptr long) basic_string_wchar__Copy @ cdecl -arch=win64 ?_Copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AEAAX_K@Z(ptr long) basic_string_wchar__Copy -@ stub ?_Cosh@?$_Ctr@M@std@@SAMMM@Z -@ stub ?_Cosh@?$_Ctr@N@std@@SANNN@Z +@ cdecl ?_Cosh@?$_Ctr@M@std@@SAMMM@Z(float float) _FCosh +@ cdecl ?_Cosh@?$_Ctr@N@std@@SANNN@Z(double double) _Cosh @ stub ?_Cosh@?$_Ctr@O@std@@SAOOO@Z @ cdecl -arch=arm ?_Decref@facet@locale@std@@QAAPAV123@XZ(ptr) locale_facet__Decref @ thiscall -arch=i386 ?_Decref@facet@locale@std@@QAEPAV123@XZ(ptr) locale_facet__Decref @@ -5633,14 +5633,14 @@ @ cdecl -arch=arm ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAAHPBGH@Z(ptr ptr long) basic_streambuf_wchar_xsputn @ thiscall -arch=i386 ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MAEHPBGH@Z(ptr ptr long) basic_streambuf_wchar_xsputn @ cdecl -arch=win64 ?xsputn@?$basic_streambuf@GU?$char_traits@G@std@@@std@@MEAA_JPEBG_J@Z(ptr ptr long) basic_streambuf_wchar_xsputn -@ stub _Cosh +@ cdecl _Cosh(double double) @ extern _Denorm _Denorm @ stub _Dnorm @ cdecl _Dscale(ptr long) @ cdecl _Dtest(ptr) @ extern _Eps _Eps @ cdecl _Exp(ptr double long) -@ stub _FCosh +@ cdecl _FCosh(float float) @ extern _FDenorm _FDenorm @ stub _FDnorm @ cdecl _FDscale(ptr long) diff --git a/dlls/msvcp70/msvcp70.spec b/dlls/msvcp70/msvcp70.spec index e79ef0e4b5a..d49bc074cab 100644 --- a/dlls/msvcp70/msvcp70.spec +++ b/dlls/msvcp70/msvcp70.spec @@ -2399,8 +2399,8 @@ @ stub -arch=i386 ?_Copy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEXII@Z @ stub -arch=arm ?_Copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AAAXII@Z @ stub -arch=i386 ?_Copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AAEXII@Z -@ stub ?_Cosh@?$_Ctraits@M@std@@SAMMM@Z -@ stub ?_Cosh@?$_Ctraits@N@std@@SANNN@Z +@ cdecl ?_Cosh@?$_Ctraits@M@std@@SAMMM@Z(float float) _FCosh +@ cdecl ?_Cosh@?$_Ctraits@N@std@@SANNN@Z(double double) _Cosh @ stub ?_Cosh@?$_Ctraits@O@std@@SAOOO@Z @ cdecl -arch=arm ?_Decref@facet@locale@std@@QAAPAV123@XZ(ptr) locale_facet__Decref @ thiscall -arch=i386 ?_Decref@facet@locale@std@@QAEPAV123@XZ(ptr) locale_facet__Decref @@ -6916,14 +6916,14 @@ @ thiscall -arch=i386 ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPB_WH@Z(ptr ptr long) basic_streambuf_wchar_xsputn @ cdecl -arch=win64 ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEB_W_J@Z(ptr ptr long) basic_streambuf_wchar_xsputn @ stub _Atexit -@ stub _Cosh +@ cdecl _Cosh(double double) @ extern _Denorm @ stub _Dnorm @ cdecl _Dscale(ptr long) @ cdecl _Dtest(ptr) @ extern _Eps @ cdecl _Exp(ptr double long) -@ stub _FCosh +@ cdecl _FCosh(float float) @ extern _FDenorm @ stub _FDnorm @ cdecl _FDscale(ptr long) diff --git a/dlls/msvcp71/msvcp71.spec b/dlls/msvcp71/msvcp71.spec index efa92691061..df0276cc5f9 100644 --- a/dlls/msvcp71/msvcp71.spec +++ b/dlls/msvcp71/msvcp71.spec @@ -2621,8 +2621,8 @@ @ cdecl -arch=arm ?_Copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAAXII@Z(ptr long long) basic_string_wchar__Copy @ thiscall -arch=i386 ?_Copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IAEXII@Z(ptr long long) basic_string_wchar__Copy @ cdecl -arch=win64 ?_Copy@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@IEAAX_K0@Z(ptr long long) basic_string_wchar__Copy -@ stub ?_Cosh@?$_Ctraits@M@std@@SAMMM@Z -@ stub ?_Cosh@?$_Ctraits@N@std@@SANNN@Z +@ cdecl ?_Cosh@?$_Ctraits@M@std@@SAMMM@Z(float float) _FCosh +@ cdecl ?_Cosh@?$_Ctraits@N@std@@SANNN@Z(double double) _Cosh @ stub ?_Cosh@?$_Ctraits@O@std@@SAOOO@Z @ cdecl -arch=arm ?_Decref@facet@locale@std@@QAAPAV123@XZ(ptr) locale_facet__Decref @ thiscall -arch=i386 ?_Decref@facet@locale@std@@QAEPAV123@XZ(ptr) locale_facet__Decref @@ -7037,14 +7037,14 @@ @ thiscall -arch=i386 ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPB_WH@Z(ptr ptr long) basic_streambuf_wchar_xsputn @ cdecl -arch=win64 ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEB_W_J@Z(ptr ptr long) basic_streambuf_wchar_xsputn @ stub _Atexit -@ stub _Cosh +@ cdecl _Cosh(double double) @ extern _Denorm @ stub _Dnorm @ cdecl _Dscale(ptr long) @ cdecl _Dtest(ptr) @ extern _Eps @ cdecl _Exp(ptr double long) -@ stub _FCosh +@ cdecl _FCosh(float float) @ extern _FDenorm @ stub _FDnorm @ cdecl _FDscale(ptr long) diff --git a/dlls/msvcp80/msvcp80.spec b/dlls/msvcp80/msvcp80.spec index 4171ce95f34..21b8c55a0ea 100644 --- a/dlls/msvcp80/msvcp80.spec +++ b/dlls/msvcp80/msvcp80.spec @@ -2898,8 +2898,8 @@ @ cdecl -arch=win64 ?_Copy_s@?$char_traits@G@std@@SAPEAGPEAG_KPEBG1@Z(ptr long ptr long) MSVCP_char_traits_short__Copy_s @ cdecl -arch=win32 ?_Copy_s@?$char_traits@_W@std@@SAPA_WPA_WIPB_WI@Z(ptr long ptr long) MSVCP_char_traits_wchar__Copy_s @ cdecl -arch=win64 ?_Copy_s@?$char_traits@_W@std@@SAPEA_WPEA_W_KPEB_W1@Z(ptr long ptr long) MSVCP_char_traits_wchar__Copy_s -@ stub ?_Cosh@?$_Ctraits@M@std@@SAMMM@Z -@ stub ?_Cosh@?$_Ctraits@N@std@@SANNN@Z +@ cdecl ?_Cosh@?$_Ctraits@M@std@@SAMMM@Z(float float) _FCosh +@ cdecl ?_Cosh@?$_Ctraits@N@std@@SANNN@Z(double double) _Cosh @ stub ?_Cosh@?$_Ctraits@O@std@@SAOOO@Z @ cdecl -arch=win32 ?_Cout_func@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@XZ() _Cout_func @ cdecl -arch=win64 ?_Cout_func@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@XZ() _Cout_func @@ -7829,7 +7829,7 @@ @ cdecl -arch=arm ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAAHPB_WH@Z(ptr ptr long) basic_streambuf_wchar_xsputn @ thiscall -arch=i386 ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPB_WH@Z(ptr ptr long) basic_streambuf_wchar_xsputn @ cdecl -arch=win64 ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEB_W_J@Z(ptr ptr long) basic_streambuf_wchar_xsputn -@ stub _Cosh +@ cdecl _Cosh(double double) @ extern _Denorm @ stub _Dnorm @ cdecl _Dscale(ptr long) @@ -7838,7 +7838,7 @@ @ stub _Dunscale @ extern _Eps @ cdecl _Exp(ptr double long) -@ stub _FCosh +@ cdecl _FCosh(float float) @ extern _FDenorm @ stub _FDnorm @ cdecl _FDscale(ptr long) diff --git a/dlls/msvcp90/math.c b/dlls/msvcp90/math.c index e8787f11b1d..920287e8d37 100644 --- a/dlls/msvcp90/math.c +++ b/dlls/msvcp90/math.c @@ -2363,6 +2363,20 @@ short __cdecl _FExp(float *x, float y, short scale) return dclass(*x); } +/* ?_Cosh@?$_Ctr@N@std@@SANNN@Z + ?_Cosh@?$_Ctraits@N@std@@SANNN@Z*/ +double __cdecl _Cosh(double x, double y) +{ + return y * cosh(x); +} + +/* ?_Cosh@?$_Ctr@M@std@@SAMMM@Z + ?_Cosh@?$_Ctraits@M@std@@SAMMM@Z*/ +float __cdecl _FCosh(float x, float y) +{ + return y * cosh(x); +} + /* ?_Sinh@?$_Ctr@N@std@@SANNN@Z ?_Sinh@?$_Ctraits@N@std@@SANNN@Z */ double __cdecl _Sinh(double x, double y) diff --git a/dlls/msvcp90/msvcp90.spec b/dlls/msvcp90/msvcp90.spec index 101709bb6dd..7fe9ceede63 100644 --- a/dlls/msvcp90/msvcp90.spec +++ b/dlls/msvcp90/msvcp90.spec @@ -2903,8 +2903,8 @@ @ cdecl -arch=win64 ?_Copy_s@?$char_traits@G@std@@SAPEAGPEAG_KPEBG1@Z(ptr long ptr long) MSVCP_char_traits_short__Copy_s @ cdecl -arch=win32 ?_Copy_s@?$char_traits@_W@std@@SAPA_WPA_WIPB_WI@Z(ptr long ptr long) MSVCP_char_traits_wchar__Copy_s @ cdecl -arch=win64 ?_Copy_s@?$char_traits@_W@std@@SAPEA_WPEA_W_KPEB_W1@Z(ptr long ptr long) MSVCP_char_traits_wchar__Copy_s -@ stub ?_Cosh@?$_Ctraits@M@std@@SAMMM@Z -@ stub ?_Cosh@?$_Ctraits@N@std@@SANNN@Z +@ cdecl ?_Cosh@?$_Ctraits@M@std@@SAMMM@Z(float float) _FCosh +@ cdecl ?_Cosh@?$_Ctraits@N@std@@SANNN@Z(double double) _Cosh @ stub ?_Cosh@?$_Ctraits@O@std@@SAOOO@Z @ cdecl -arch=win32 ?_Cout_func@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@XZ() _Cout_func @ cdecl -arch=win64 ?_Cout_func@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@XZ() _Cout_func @@ -7861,14 +7861,14 @@ @ cdecl -arch=arm ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAAHPB_WH@Z(ptr ptr long) basic_streambuf_wchar_xsputn @ thiscall -arch=i386 ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MAEHPB_WH@Z(ptr ptr long) basic_streambuf_wchar_xsputn @ cdecl -arch=win64 ?xsputn@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@MEAA_JPEB_W_J@Z(ptr ptr long) basic_streambuf_wchar_xsputn -@ stub _Cosh +@ cdecl _Cosh(double double) @ extern _Denorm @ stub _Dnorm @ cdecl _Dscale(ptr long) @ cdecl _Dtest(ptr) @ extern _Eps @ cdecl _Exp(ptr double long) -@ stub _FCosh +@ cdecl _FCosh(float float) @ extern _FDenorm @ stub _FDnorm @ cdecl _FDscale(ptr long) diff --git a/dlls/msvcp_win/msvcp_win.spec b/dlls/msvcp_win/msvcp_win.spec index d401044e62f..7196ae4d24a 100644 --- a/dlls/msvcp_win/msvcp_win.spec +++ b/dlls/msvcp_win/msvcp_win.spec @@ -3633,14 +3633,14 @@ @ cdecl _Cnd_unregister_at_thread_exit(ptr) msvcp140._Cnd_unregister_at_thread_exit @ cdecl _Cnd_wait(ptr ptr) msvcp140._Cnd_wait @ cdecl _Copy_file(wstr wstr) msvcp140._Copy_file -@ stub _Cosh +@ cdecl _Cosh(double double) msvcp140._Cosh @ cdecl _Current_get(ptr) msvcp140._Current_get @ cdecl _Current_set(wstr) msvcp140._Current_set @ extern _Denorm msvcp140._Denorm @ cdecl _Dtest(ptr) msvcp140._Dtest @ cdecl _Equivalent(wstr wstr) msvcp140._Equivalent @ cdecl _Exp(ptr double long) msvcp140._Exp -@ stub _FCosh +@ cdecl _FCosh(float float) msvcp140._FCosh @ extern _FDenorm msvcp140._FDenorm @ cdecl _FDtest(ptr) msvcp140._FDtest @ cdecl _FExp(ptr float long) msvcp140._FExp -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10942