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: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Jacek Caban 2019-08-25 18:49:55 +02:00 committed by Alexandre Julliard
parent e574d4f8f9
commit 0f15515cc2
8 changed files with 10 additions and 1 deletions

View File

@ -25,6 +25,7 @@ C_SRCS = \
lock.c \
main.c \
math.c \
mathf.c \
mbcs.c \
misc.c \
onexit.c \

View File

@ -25,6 +25,7 @@ C_SRCS = \
lock.c \
main.c \
math.c \
mathf.c \
mbcs.c \
misc.c \
onexit.c \

View File

@ -25,6 +25,7 @@ C_SRCS = \
lock.c \
main.c \
math.c \
mathf.c \
mbcs.c \
misc.c \
onexit.c \

View File

@ -25,6 +25,7 @@ C_SRCS = \
lock.c \
main.c \
math.c \
mathf.c \
mbcs.c \
misc.c \
onexit.c \

View File

@ -25,6 +25,7 @@ C_SRCS = \
lock.c \
main.c \
math.c \
mathf.c \
mbcs.c \
misc.c \
onexit.c \

View File

@ -24,6 +24,7 @@ C_SRCS = \
lock.c \
main.c \
math.c \
mathf.c \
mbcs.c \
misc.c \
onexit.c \

View File

@ -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

View File

@ -24,6 +24,7 @@ C_SRCS = \
lock.c \
main.c \
math.c \
mathf.c \
mbcs.c \
misc.c \
printf.c \