Commit 0f15515c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mscvrt: Always provide float variants of math functions in importlib on x86.

We have them declared as inline wrappers around double variant in math.h, but that's not enough. clang is smart enough to optimize them back to *f variants anyway. Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent e574d4f8
......@@ -25,6 +25,7 @@ C_SRCS = \
lock.c \
main.c \
math.c \
mathf.c \
mbcs.c \
misc.c \
onexit.c \
......
......@@ -25,6 +25,7 @@ C_SRCS = \
lock.c \
main.c \
math.c \
mathf.c \
mbcs.c \
misc.c \
onexit.c \
......
......@@ -25,6 +25,7 @@ C_SRCS = \
lock.c \
main.c \
math.c \
mathf.c \
mbcs.c \
misc.c \
onexit.c \
......
......@@ -25,6 +25,7 @@ C_SRCS = \
lock.c \
main.c \
math.c \
mathf.c \
mbcs.c \
misc.c \
onexit.c \
......
......@@ -25,6 +25,7 @@ C_SRCS = \
lock.c \
main.c \
math.c \
mathf.c \
mbcs.c \
misc.c \
onexit.c \
......
......@@ -24,6 +24,7 @@ C_SRCS = \
lock.c \
main.c \
math.c \
mathf.c \
mbcs.c \
misc.c \
onexit.c \
......
......@@ -25,7 +25,7 @@
#include <math.h>
#if !defined(__i386__) && _MSVCR_VER > 0 && _MSVCR_VER < 80
#if defined(__i386__) || (_MSVCR_VER > 0 && _MSVCR_VER < 80)
float sinf(float x) { return sin(x); }
float cosf(float x) { return cos(x); }
float tanf(float x) { return tan(x); }
......@@ -34,4 +34,6 @@ float expf(float x) { return exp(x); }
float logf(float x) { return log(x); }
float powf(float x, float y) { return pow(x, y); }
float sqrtf(float x) { return sqrt(x); }
float floorf(float x) { return floor(x); }
float ceilf(float x) { return ceil(x); }
#endif
......@@ -24,6 +24,7 @@ C_SRCS = \
lock.c \
main.c \
math.c \
mathf.c \
mbcs.c \
misc.c \
printf.c \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment