ngspice/src/include/missing_math.h

46 lines
800 B
C
Raw Normal View History

2000-04-27 22:03:57 +02:00
/**********
Copyright 1999 Emmanuel Rouat
**********/
/* Decl. for missing maths functions, if any */
2007-11-21 18:05:51 +01:00
#ifndef MISSING_MATH_H_INCLUDED
#define MISSING_MATH_H_INCLUDED
2008-01-02 19:52:04 +01:00
bool AlmostEqualUlps(double, double, int);
2000-04-27 22:03:57 +02:00
#ifndef HAVE_ERFC
extern double erfc(double);
#endif
#ifndef HAVE_LOGB
extern double logb(double);
#endif
#ifndef HAVE_SCALB
2008-11-19 20:57:27 +01:00
extern double scalb(double, double);
2000-04-27 22:03:57 +02:00
#endif
2008-11-19 20:57:27 +01:00
#ifndef HAVE_SCALBN
extern double scalbn(double, int);
2000-04-27 22:03:57 +02:00
#endif
2009-01-01 21:44:49 +01:00
#ifndef HAVE_DECL_ISNAN
#ifndef HAVE_ISNAN
extern int isnan(double);
#endif
2009-01-01 21:44:49 +01:00
#endif
#ifndef HAVE_DECL_ISINF
# ifndef HAVE_ISINF
# if defined(HAVE_FINITE) && (defined (HAVE_DECL_ISNAN) || defined (HAVE_ISNAN))
# define isinf(x) (!finite(x) && !isnan(x))
# endif
# else
extern int isinf(double);
# endif
#endif
2007-11-21 18:05:51 +01:00
#endif /* MISSING_MATH_H_INCLUDED */