OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [stdlib/] [gdtoa.h] - Blame information for rev 309

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
/****************************************************************
2
 
3
The author of this software is David M. Gay.
4
 
5
Copyright (C) 1998 by Lucent Technologies
6
All Rights Reserved
7
 
8
Permission to use, copy, modify, and distribute this software and
9
its documentation for any purpose and without fee is hereby
10
granted, provided that the above copyright notice appear in all
11
copies and that both that the copyright notice and this
12
permission notice and warranty disclaimer appear in supporting
13
documentation, and that the name of Lucent or any of its entities
14
not be used in advertising or publicity pertaining to
15
distribution of the software without specific, written prior
16
permission.
17
 
18
LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
19
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
20
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
21
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
22
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
23
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
24
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
25
THIS 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
57
FPI {
58
        int nbits;
59
        int emin;
60
        int emax;
61
        int rounding;
62
        int sudden_underflow;
63
        } FPI;
64
 
65
enum {  /* 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 */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.