makefiles: Explicitly create destination dirs when installing symlinks.
[wine/zf.git] / dlls / msvcrt / mathf.c
blob232740df153d37f63d33663aa4fdb86a1eb616a3
1 /*
2 * msvcrt float functions
4 * Copyright 2019 Jacek Caban for CodeWeavers
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 /* this function is part of the import lib to provide floating */
22 #if 0
23 #pragma makedep implib
24 #endif
26 #include <corecrt.h>
28 double __cdecl sin(double);
29 double __cdecl cos(double);
30 double __cdecl tan(double);
31 double __cdecl atan2(double, double);
32 double __cdecl exp(double);
33 double __cdecl log(double);
34 double __cdecl pow(double, double);
35 double __cdecl sqrt(double);
36 double __cdecl floor(double);
37 double __cdecl ceil(double);
38 float __cdecl powf(float, float);
40 #if defined(__i386__) || (_MSVCR_VER > 0 && _MSVCR_VER < 80)
41 float sinf(float x) { return sin(x); }
42 float cosf(float x) { return cos(x); }
43 float tanf(float x) { return tan(x); }
44 float atan2f(float x, float y) { return atan2(x, y); }
45 float expf(float x) { return exp(x); }
46 float logf(float x) { return log(x); }
47 float powf(float x, float y) { return pow(x, y); }
48 float sqrtf(float x) { return sqrt(x); }
49 float floorf(float x) { return floor(x); }
50 float ceilf(float x) { return ceil(x); }
51 #endif
53 #if _MSVCR_VER < 120
54 double exp2(double x) { return pow(2.0, x); }
55 float exp2f(float x) { return powf(2.0f, x); }
56 #endif