VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/msvcrt/math.h@ 19711

最後變更 在這個檔案從19711是 19678,由 vboxsync 提交於 16 年 前

opengl: update wine to 1.1.21, add d3d9.dll to build list

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.8 KB
 
1/*
2 * Math functions.
3 *
4 * Derived from the mingw header written by Colin Peters.
5 * Modified for Wine use by Hans Leidekker.
6 * This file is in the public domain.
7 */
8
9/*
10 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
11 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
12 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
13 * a choice of LGPL license versions is made available with the language indicating
14 * that LGPLv2 or any later version may be used, or where a choice of which version
15 * of the LGPL is applied is otherwise unspecified.
16 */
17
18#ifndef __WINE_MATH_H
19#define __WINE_MATH_H
20
21#include <crtdefs.h>
22
23#include <pshpack8.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29#define _DOMAIN 1 /* domain error in argument */
30#define _SING 2 /* singularity */
31#define _OVERFLOW 3 /* range overflow */
32#define _UNDERFLOW 4 /* range underflow */
33#define _TLOSS 5 /* total loss of precision */
34#define _PLOSS 6 /* partial loss of precision */
35
36#ifndef _EXCEPTION_DEFINED
37#define _EXCEPTION_DEFINED
38struct _exception
39{
40 int type;
41 char *name;
42 double arg1;
43 double arg2;
44 double retval;
45};
46#endif /* _EXCEPTION_DEFINED */
47
48#ifndef _COMPLEX_DEFINED
49#define _COMPLEX_DEFINED
50struct _complex
51{
52 double x; /* Real part */
53 double y; /* Imaginary part */
54};
55#endif /* _COMPLEX_DEFINED */
56
57double __cdecl sin(double);
58double __cdecl cos(double);
59double __cdecl tan(double);
60double __cdecl sinh(double);
61double __cdecl cosh(double);
62double __cdecl tanh(double);
63double __cdecl asin(double);
64double __cdecl acos(double);
65double __cdecl atan(double);
66double __cdecl atan2(double, double);
67double __cdecl exp(double);
68double __cdecl log(double);
69double __cdecl log10(double);
70double __cdecl pow(double, double);
71double __cdecl sqrt(double);
72double __cdecl ceil(double);
73double __cdecl floor(double);
74double __cdecl fabs(double);
75double __cdecl ldexp(double, int);
76double __cdecl frexp(double, int*);
77double __cdecl modf(double, double*);
78double __cdecl fmod(double, double);
79
80double __cdecl hypot(double, double);
81double __cdecl j0(double);
82double __cdecl j1(double);
83double __cdecl jn(int, double);
84double __cdecl y0(double);
85double __cdecl y1(double);
86double __cdecl yn(int, double);
87
88int __cdecl _matherr(struct _exception*);
89double __cdecl _cabs(struct _complex);
90
91#ifndef HUGE_VAL
92# if defined(__GNUC__) && (__GNUC__ >= 3)
93# define HUGE_VAL (__extension__ 0x1.0p2047)
94# else
95static const union {
96 unsigned char __c[8];
97 double __d;
98} __huge_val = { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } };
99# define HUGE_VAL (__huge_val.__d)
100# endif
101#endif
102
103#ifdef __cplusplus
104}
105#endif
106
107#include <poppack.h>
108
109#endif /* __WINE_MATH_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette