Blame trio/trionan.h

Packit Service a2489d
/*************************************************************************
Packit Service a2489d
 *
Packit Service a2489d
 * $Id: trionan.h,v 1.7 2002/05/04 14:26:44 breese Exp $
Packit Service a2489d
 *
Packit Service a2489d
 * Copyright (C) 2001 Bjorn Reese <breese@users.sourceforge.net>
Packit Service a2489d
 *
Packit Service a2489d
 * Permission to use, copy, modify, and distribute this software for any
Packit Service a2489d
 * purpose with or without fee is hereby granted, provided that the above
Packit Service a2489d
 * copyright notice and this permission notice appear in all copies.
Packit Service a2489d
 *
Packit Service a2489d
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
Packit Service a2489d
 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
Packit Service a2489d
 * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS AND
Packit Service a2489d
 * CONTRIBUTORS ACCEPT NO RESPONSIBILITY IN ANY CONCEIVABLE MANNER.
Packit Service a2489d
 *
Packit Service a2489d
 ************************************************************************/
Packit Service a2489d
Packit Service a2489d
#ifndef TRIO_NAN_H
Packit Service a2489d
#define TRIO_NAN_H
Packit Service a2489d
Packit Service a2489d
#include "triodef.h"
Packit Service a2489d
Packit Service a2489d
#ifdef __cplusplus
Packit Service a2489d
extern "C" {
Packit Service a2489d
#endif
Packit Service a2489d
Packit Service a2489d
enum {
Packit Service a2489d
  TRIO_FP_INFINITE,
Packit Service a2489d
  TRIO_FP_NAN,
Packit Service a2489d
  TRIO_FP_NORMAL,
Packit Service a2489d
  TRIO_FP_SUBNORMAL,
Packit Service a2489d
  TRIO_FP_ZERO
Packit Service a2489d
};
Packit Service a2489d
Packit Service a2489d
/*
Packit Service a2489d
 * Return NaN (Not-a-Number).
Packit Service a2489d
 */
Packit Service a2489d
TRIO_PUBLIC double trio_nan TRIO_PROTO((void));
Packit Service a2489d
Packit Service a2489d
/*
Packit Service a2489d
 * Return positive infinity.
Packit Service a2489d
 */
Packit Service a2489d
TRIO_PUBLIC double trio_pinf TRIO_PROTO((void));
Packit Service a2489d
Packit Service a2489d
/*
Packit Service a2489d
 * Return negative infinity.
Packit Service a2489d
 */
Packit Service a2489d
TRIO_PUBLIC double trio_ninf TRIO_PROTO((void));
Packit Service a2489d
  
Packit Service a2489d
/*
Packit Service a2489d
 * Return negative zero.
Packit Service a2489d
 */
Packit Service a2489d
TRIO_PUBLIC double trio_nzero TRIO_PROTO((TRIO_NOARGS));
Packit Service a2489d
Packit Service a2489d
/*
Packit Service a2489d
 * If number is a NaN return non-zero, otherwise return zero.
Packit Service a2489d
 */
Packit Service a2489d
TRIO_PUBLIC int trio_isnan TRIO_PROTO((double number));
Packit Service a2489d
Packit Service a2489d
/*
Packit Service a2489d
 * If number is positive infinity return 1, if number is negative
Packit Service a2489d
 * infinity return -1, otherwise return 0.
Packit Service a2489d
 */
Packit Service a2489d
TRIO_PUBLIC int trio_isinf TRIO_PROTO((double number));
Packit Service a2489d
Packit Service a2489d
/*
Packit Service a2489d
 * If number is finite return non-zero, otherwise return zero.
Packit Service a2489d
 */
Packit Service a2489d
TRIO_PUBLIC int trio_isfinite TRIO_PROTO((double number));
Packit Service a2489d
Packit Service a2489d
TRIO_PUBLIC int trio_signbit TRIO_PROTO((double number));
Packit Service a2489d
Packit Service a2489d
TRIO_PUBLIC int trio_fpclassify TRIO_PROTO((double number));
Packit Service a2489d
Packit Service a2489d
TRIO_PUBLIC int trio_fpclassify_and_signbit TRIO_PROTO((double number, int *is_negative));
Packit Service a2489d
Packit Service a2489d
#ifdef __cplusplus
Packit Service a2489d
}
Packit Service a2489d
#endif
Packit Service a2489d
Packit Service a2489d
#endif /* TRIO_NAN_H */