1
0
mirror of https://github.com/adtools/clib2.git synced 2026-05-05 04:09:51 +00:00

- Added NAN, INFINITY, FLT_EVAL_METHOD, float_t and double_t to

<math.h>.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14959 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-05-29 10:09:55 +00:00
parent 2ced1d3293
commit c3a10b88b5
3 changed files with 36 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* $Id: math.h,v 1.10 2005-05-19 13:57:53 obarthel Exp $
* $Id: math.h,v 1.11 2005-05-29 10:09:55 obarthel Exp $
*
* :ts=4
*
@@ -129,6 +129,16 @@ extern float __huge_val_float;
/****************************************************************************/
extern float __infinity;
extern float __nan;
/****************************************************************************/
#define INFINITY ((const float)__infinity)
#define NAN ((const float)__nan)
/****************************************************************************/
#define FP_INFINITE 0 /* -/+ infinity */
#define FP_NAN 1 /* not a number */
#define FP_NORMAL 2 /* normalized floating point number */
@@ -233,6 +243,15 @@ extern float copysignf(float x, float y);
/****************************************************************************/
#define FLT_EVAL_METHOD 0
/****************************************************************************/
typedef float float_t;
typedef double double_t;
/****************************************************************************/
#ifdef __cplusplus
}
#endif /* __cplusplus */