~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/util/math.h

  • Committer: mordred
  • Date: 2008-11-03 19:16:14 UTC
  • mto: (575.1.1 devel)
  • mto: This revision was merged to the branch mainline in revision 575.
  • Revision ID: mordred@opensolaris-20081103191614-baivj0p2wjudgaj2
zomg. Solaris actually builds all the way!!!

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 * guys to look at it.
28
28
 */
29
29
 
30
 
#ifdef (__FORTEC__)
31
 
#if defined(HAVE_IEEEFP_H)
32
 
# include <ieeefp.h>
33
 
#endif
34
 
 
35
 
#if defined(__cplusplus) 
36
 
# if !defined(HAVE_ISNAN)
37
 
 
38
 
inline int isnan(double a)
39
 
{
40
 
  return isnand(a);
41
 
}
42
 
 
43
 
inline int isnan(float a)
44
 
{
45
 
  return isnanf(a);
46
 
}
47
 
#endif
48
 
 
49
 
#if !defined(__builtin_isnan)
50
 
inline int __builtin_isnan (double a)
51
 
{
52
 
  return isnand(a);
53
 
}
54
 
 
55
 
inline int __builting_isnan (float a)
56
 
{
57
 
  return isnanf(a);
58
 
}
59
 
#endif
60
 
 
61
 
#if !defined(__builtin_isinf)
62
 
int __builtin_isinf(double a)
63
 
{
64
 
  fpclass_t fc= fpclass(a);
65
 
  return ((fc==FP_NINF)||(fc==FP_PINF)) ? 0 : 1;
66
 
}
67
 
#endif
68
 
 
69
 
#endif
 
30
#if defined(_FORTEC_)
 
31
# if defined(HAVE_IEEEFP_H)
 
32
#  include <ieeefp.h>
 
33
# endif
 
34
# include CMATH_H
 
35
 
 
36
# if defined(__cplusplus) 
 
37
 
 
38
#  if defined(NEED_ISNAN)
 
39
int isnan (double a);
 
40
#  endif /* defined(NEED_ISNAN) */
 
41
 
 
42
#  if defined(NEED_ISINF)
 
43
int isinf(double a);
 
44
#  endif /* defined(NEED_ISINF) */
 
45
 
 
46
#  if defined(NEED_ISFINITE)
 
47
int isfinite(double a);
 
48
#  endif /* defined(NEED_ISFINITE) */
 
49
 
 
50
# endif /* defined(__cplusplus) */
70
51
#endif /* __FORTEC__ */
71
 
#endif
 
52
 
 
53
 
 
54
#endif /* DRIZZLE_SERVER_UTIL_MATH */