From 5c6912f56133925f6d08b8239cdbdf39c8f74964 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Wed, 16 Apr 2025 18:28:42 +0300 Subject: [PATCH] [CRT][UCRTBASE] Add round/roundf --- dll/win32/ucrtbase/ucrtbase.spec | 4 ++-- sdk/lib/crt/math/math.cmake | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dll/win32/ucrtbase/ucrtbase.spec b/dll/win32/ucrtbase/ucrtbase.spec index 7f759dd50d2..28dd4ad59d6 100644 --- a/dll/win32/ucrtbase/ucrtbase.spec +++ b/dll/win32/ucrtbase/ucrtbase.spec @@ -2547,8 +2547,8 @@ @ cdecl -stub rint(double) @ cdecl -stub rintf(float) @ cdecl rintl(double) rint -@ cdecl -stub round(double) -@ cdecl -stub roundf(float) +@ cdecl round(double) +@ cdecl roundf(float) @ cdecl roundl(double) round @ cdecl scalbln(double long) scalbn # double scalbln(double x, long exp); @ cdecl scalblnf(float long) scalbnf # float scalblnf(float x, long exp); diff --git a/sdk/lib/crt/math/math.cmake b/sdk/lib/crt/math/math.cmake index e46243f1841..285ea431b4c 100644 --- a/sdk/lib/crt/math/math.cmake +++ b/sdk/lib/crt/math/math.cmake @@ -8,6 +8,8 @@ list(APPEND LIBCNTPR_MATH_SOURCE math/div.c math/exp2f.c math/labs.c + math/round.c + math/roundf.c math/sincos.c )