blob: 0be5fa5e0612b32c18789aafe8cf81573458c10d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
From 719b3c27b1e0d4f0449415eaa55a1f10c74864d2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20D=C3=B6singer?= <stefan@codeweavers.com>
Date: Fri, 2 May 2025 13:25:25 +0300
Subject: [PATCH 3/3] msvcrt: Add truncf to the import library.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58191
---
dlls/msvcrt/mathf.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/msvcrt/mathf.c b/dlls/msvcrt/mathf.c
index 3c87c7d0e00..7f46230e7bd 100644
--- a/dlls/msvcrt/mathf.c
+++ b/dlls/msvcrt/mathf.c
@@ -67,6 +67,8 @@ __ASM_GLOBAL_IMPORT(powf)
#if _MSVCR_VER < 120
double exp2(double x) { return pow(2.0, x); }
float exp2f(float x) { return powf(2.0f, x); }
+float truncf(float x) { return x > 0.0 ? floor(x) : ceil(x); }
__ASM_GLOBAL_IMPORT(exp2)
__ASM_GLOBAL_IMPORT(exp2f)
+__ASM_GLOBAL_IMPORT(truncf)
#endif
--
2.49.0
|