]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/math.h
3 * Purpose: Declarations/definitions of common math functions
4 * Author: John Labenski and others
9 * Licence: wxWindows licence
12 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
17 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
18 #pragma interface "math.h"
26 #define M_PI 3.1415926535897932384626433832795
29 /* unknown __VISAGECC__, __SYMANTECCC__ */
31 #if defined(__VISUALC__) || defined(__BORLANDC__) || defined(__WATCOMC__)
33 #define wxFinite(x) _finite(x)
34 #elif defined(__GNUG__)||defined(__GNUWIN32__)||defined(__DJGPP__)|| \
35 defined(__SGI_CC__)||defined(__SUNCC__)||defined(__XLC__)|| \
36 defined(__HPUX__)||defined(__MWERKS__)
37 #define wxFinite(x) finite(x)
39 #define wxFinite(x) ((x) == (x))
43 #if defined(__VISUALC__)||defined(__BORLAND__)
44 #define wxIsNaN(x) _isnan(x)
45 #elif defined(__GNUG__)||defined(__GNUWIN32__)||defined(__DJGPP__)|| \
46 defined(__SGI_CC__)||defined(__SUNCC__)||defined(__XLC__)|| \
47 defined(__HPUX__)||defined(__MWERKS__)
48 #define wxIsNaN(x) isnan(x)
50 #define wxIsNaN(x) ((x) != (x))