Alexandre Julliard : include: Add inline wrappers for some underscore-prefixed math functions.

Alexandre Julliard julliard at winehq.org
Mon Oct 21 14:58:25 CDT 2013


Module: wine
Branch: master
Commit: a40574577072da11d8eda570e934636b5e83e528
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a40574577072da11d8eda570e934636b5e83e528

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Oct 21 18:45:27 2013 +0200

include: Add inline wrappers for some underscore-prefixed math functions.

---

 include/msvcrt/math.h |   27 +++++++++++++++++++--------
 1 files changed, 19 insertions(+), 8 deletions(-)

diff --git a/include/msvcrt/math.h b/include/msvcrt/math.h
index 4d0655e..34aa268 100644
--- a/include/msvcrt/math.h
+++ b/include/msvcrt/math.h
@@ -68,13 +68,13 @@ double __cdecl frexp(double, int*);
 double __cdecl modf(double, double*);
 double __cdecl fmod(double, double);
 
-double __cdecl hypot(double, double);
-double __cdecl j0(double);
-double __cdecl j1(double);
-double __cdecl jn(int, double);
-double __cdecl y0(double);
-double __cdecl y1(double);
-double __cdecl yn(int, double);
+double __cdecl _hypot(double, double);
+double __cdecl _j0(double);
+double __cdecl _j1(double);
+double __cdecl _jn(int, double);
+double __cdecl _y0(double);
+double __cdecl _y1(double);
+double __cdecl _yn(int, double);
 
 #ifdef __x86_64__
 
@@ -129,7 +129,7 @@ float __cdecl fmodf(float, float);
 #define fabsf(x) ((float)fabs((double)(x)))
 #define ldexpf(x,y) ((float)ldexp((double)(x),(y)))
 
-float __cdecl hypotf(float, float);
+float __cdecl _hypotf(float, float);
 
 int __cdecl _matherr(struct _exception*);
 double __cdecl _cabs(struct _complex);
@@ -171,4 +171,15 @@ static const union {
 #endif /* !_MATH_DEFINES_DEFINED */
 #endif /* _USE_MATH_DEFINES */
 
+static inline double hypot( double x, double y ) { return _hypot( x, y ); }
+static inline double j0( double x ) { return _j0( x ); }
+static inline double j1( double x ) { return _j1( x ); }
+static inline double jn( int n, double x ) { return _jn( n, x ); }
+static inline double y0( double x ) { return _y0( x ); }
+static inline double y1( double x ) { return _y1( x ); }
+static inline double yn( int n, double x ) { return _yn( n, x ); }
+static inline double cabs(struct _complex z) { return _cabs( z ); }
+
+static inline float hypotf( float x, float y ) { return _hypotf( x, y ); }
+
 #endif /* __WINE_MATH_H */




More information about the wine-cvs mailing list