ibmfloat 1.8 KB
Newer Older
Neil Turton's avatar
Neil Turton committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
/* Copyright 1996 Acorn Computers Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* float.h: ANSI draft (X3J11 Oct 86) library header, section 2.2.4.2 */
/* Copyright (C) A.C. Norman and A. Mycroft */
/* version 0.01i */

#ifndef __float_h
#define __float_h

/* IBM version.                                                          */


#define FLT_RADIX           16
#define FLT_ROUNDS          0

#define FLT_MANT_DIG        6
#define DBL_MANT_DIG        14
#define LDBL_MANT_DIG       14


#define FLT_EPSILON         9.5367431640625e-07f
#define DBL_EPSILON         2.2204460492503131e-16
#define LDBL_EPSILON        2.2204460492503131e-16L

#define FLT_DIG      6
#define DBL_DIG      15
#define LDBL_DIG     15

#define FLT_MIN_EXP  (-65)
#define DBL_MIN_EXP  (-65)
#define LDBL_MIN_EXP (-65)

#define FLT_MIN  5.3976053469340279e-79F
#define DBL_MIN  5.3976053469340279e-79
#define LDBL_MIN 5.3976053469340279e-79L

#define FLT_MIN_10_EXP  (-78)
#define DBL_MIN_10_EXP  (-78)
#define LDBL_MIN_10_EXP (-78)

#define FLT_MAX_EXP  63
#define DBL_MAX_EXP  63
#define LDBL_MAX_EXP 63

#define FLT_MAX  7.2370051459731155e+75F
#define DBL_MAX  7.2370055773322621e+75
#define LDBL_MAX 7.2370055773322621e+75L

#define FLT_MAX_10_EXP  75
#define DBL_MAX_10_EXP  75
#define LDBL_MAX_10_EXP 75

#endif

/* end of float.h */