]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/math.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Declarations/definitions of common math functions
4 // Author: John Labenski and others
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "math.h"
21 // unknown __VISAGECC__, __SYMANTECCC__
23 #if defined(__VISUALC__) || defined(__BORLANDC__) || defined(__WATCOMC__)
25 #define wxFinite(x) _finite(x)
26 #elif defined(__GNUG__)||defined(__GNUWIN32__)||defined(__DJGPP__)|| \
27 defined(__SGI_CC__)||defined(__SUNCC__)||defined(__XLC__)|| \
28 defined(__HPUX__)||defined(__MWERKS__)
29 #define wxFinite(x) finite(x)
31 #define wxFinite(x) ((x) == (x))
35 #if defined(__VISUALC__)||defined(__BORLAND__)
36 #define wxIsNaN(x) _isnan(x)
37 #elif defined(__GNUG__)||defined(__GNUWIN32__)||defined(__DJGPP__)|| \
38 defined(__SGI_CC__)||defined(__SUNCC__)||defined(__XLC__)|| \
39 defined(__HPUX__)||defined(__MWERKS__)
40 #define wxIsNaN(x) isnan(x)
42 #define wxIsNaN(x) ((x) != (x))