sl@0
|
1 |
/* FLOATIO.H
|
sl@0
|
2 |
*
|
sl@0
|
3 |
* Portions Copyright (c) 1990-1999 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
4 |
* All rights reserved.
|
sl@0
|
5 |
*/
|
sl@0
|
6 |
|
sl@0
|
7 |
/*
|
sl@0
|
8 |
* Copyright (c) 1990 The Regents of the University of California.
|
sl@0
|
9 |
* All rights reserved.
|
sl@0
|
10 |
*
|
sl@0
|
11 |
* Redistribution and use in source and binary forms are permitted
|
sl@0
|
12 |
* provided that the above copyright notice and this paragraph are
|
sl@0
|
13 |
* duplicated in all such forms and that any documentation,
|
sl@0
|
14 |
* advertising materials, and other materials related to such
|
sl@0
|
15 |
* distribution and use acknowledge that the software was developed
|
sl@0
|
16 |
* by the University of California, Berkeley. The name of the
|
sl@0
|
17 |
* University may not be used to endorse or promote products derived
|
sl@0
|
18 |
* from this software without specific prior written permission.
|
sl@0
|
19 |
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
sl@0
|
20 |
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
sl@0
|
21 |
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
sl@0
|
22 |
*
|
sl@0
|
23 |
* %W% (Berkeley) %G%
|
sl@0
|
24 |
*/
|
sl@0
|
25 |
|
sl@0
|
26 |
/*
|
sl@0
|
27 |
* Floating point scanf/printf (input/output) definitions.
|
sl@0
|
28 |
*/
|
sl@0
|
29 |
|
sl@0
|
30 |
/**
|
sl@0
|
31 |
11-bit exponent (VAX G floating point) is 308 decimal digits
|
sl@0
|
32 |
@internalComponent
|
sl@0
|
33 |
*/
|
sl@0
|
34 |
#define MAXEXP 308
|
sl@0
|
35 |
/**
|
sl@0
|
36 |
128 bit fraction takes up 39 decimal digits; max reasonable precision
|
sl@0
|
37 |
@internalComponent
|
sl@0
|
38 |
*/
|
sl@0
|
39 |
#define MAXFRACT 39
|