Blame gsl/gsl_nan.h

Packit e8bc57
/* gsl_nan.h
Packit e8bc57
 * 
Packit e8bc57
 * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman, Brian Gough
Packit e8bc57
 * 
Packit e8bc57
 * This program is free software; you can redistribute it and/or modify
Packit e8bc57
 * it under the terms of the GNU General Public License as published by
Packit e8bc57
 * the Free Software Foundation; either version 2 of the License, or (at
Packit e8bc57
 * your option) any later version.
Packit e8bc57
 * 
Packit e8bc57
 * This program is distributed in the hope that it will be useful, but
Packit e8bc57
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit e8bc57
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit e8bc57
 * General Public License for more details.
Packit e8bc57
 * 
Packit e8bc57
 * You should have received a copy of the GNU General Public License
Packit e8bc57
 * along with this program; if not, write to the Free Software
Packit e8bc57
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Packit e8bc57
 */
Packit e8bc57
Packit e8bc57
#ifndef __GSL_NAN_H__
Packit e8bc57
#define __GSL_NAN_H__
Packit e8bc57
Packit e8bc57
#ifdef INFINITY
Packit e8bc57
# define GSL_POSINF INFINITY
Packit e8bc57
# define GSL_NEGINF (-INFINITY)
Packit e8bc57
#elif defined(HUGE_VAL)
Packit e8bc57
# define GSL_POSINF HUGE_VAL
Packit e8bc57
# define GSL_NEGINF (-HUGE_VAL)
Packit e8bc57
#else
Packit e8bc57
# define GSL_POSINF (gsl_posinf())
Packit e8bc57
# define GSL_NEGINF (gsl_neginf())
Packit e8bc57
#endif
Packit e8bc57
Packit e8bc57
#ifdef NAN
Packit e8bc57
# define GSL_NAN NAN
Packit e8bc57
#elif defined(INFINITY)
Packit e8bc57
# define GSL_NAN (INFINITY/INFINITY)
Packit e8bc57
#else
Packit e8bc57
# define GSL_NAN (gsl_nan())
Packit e8bc57
#endif
Packit e8bc57
Packit e8bc57
#define GSL_POSZERO (+0)
Packit e8bc57
#define GSL_NEGZERO (-0)
Packit e8bc57
Packit e8bc57
#endif /* __GSL_NAN_H__ */