source: trunk/libs/newlib/src/newlib/libc/stdlib/gdtoa.h @ 577

Last change on this file since 577 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 2.1 KB
Line 
1/****************************************************************
2
3The author of this software is David M. Gay.
4
5Copyright (C) 1998 by Lucent Technologies
6All Rights Reserved
7
8Permission to use, copy, modify, and distribute this software and
9its documentation for any purpose and without fee is hereby
10granted, provided that the above copyright notice appear in all
11copies and that both that the copyright notice and this
12permission notice and warranty disclaimer appear in supporting
13documentation, and that the name of Lucent or any of its entities
14not be used in advertising or publicity pertaining to
15distribution of the software without specific, written prior
16permission.
17
18LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
19INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
20IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
21SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
22WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
23IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
24ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
25THIS SOFTWARE.
26
27****************************************************************/
28
29/* Please send bug reports to David M. Gay (dmg at acm dot org,
30 * with " at " changed at "@" and " dot " changed to ".").      */
31
32#ifndef GDTOA_H_INCLUDED
33#define GDTOA_H_INCLUDED
34
35
36 enum { /* return values from strtodg */
37        STRTOG_Zero     = 0,
38        STRTOG_Normal   = 1,
39        STRTOG_Denormal = 2,
40        STRTOG_Infinite = 3,
41        STRTOG_NaN      = 4,
42        STRTOG_NaNbits  = 5,
43        STRTOG_NoNumber = 6,
44        STRTOG_Retmask  = 7,
45
46        /* The following may be or-ed into one of the above values. */
47
48        STRTOG_Neg      = 0x08,
49        STRTOG_Inexlo   = 0x10,
50        STRTOG_Inexhi   = 0x20,
51        STRTOG_Inexact  = 0x30,
52        STRTOG_Underflow= 0x40,
53        STRTOG_Overflow = 0x80
54        };
55
56 typedef struct
57FPI {
58        int nbits;
59        int emin;
60        int emax;
61        int rounding;
62        int sudden_underflow;
63        } FPI;
64
65enum {  /* FPI.rounding values: same as FLT_ROUNDS */
66        FPI_Round_zero = 0,
67        FPI_Round_near = 1,
68        FPI_Round_up = 2,
69        FPI_Round_down = 3
70        };
71
72#endif /* GDTOA_H_INCLUDED */
73
74typedef unsigned short __UShort;
Note: See TracBrowser for help on using the repository browser.