PandA-2024.02
softfloat.h
Go to the documentation of this file.
1 /*
2 +--------------------------------------------------------------------------+
3 | CHStone : a suite of benchmark programs for C-based High-Level Synthesis |
4 | ======================================================================== |
5 | |
6 | * Collected and Modified : Y. Hara, H. Tomiyama, S. Honda, |
7 | H. Takada and K. Ishii |
8 | Nagoya University, Japan |
9 | |
10 | * Remark : |
11 | 1. This source code is modified to unify the formats of the benchmark |
12 | programs in CHStone. |
13 | 2. Test vectors are added for CHStone. |
14 | 3. If "main_result" is 0 at the end of the program, the program is |
15 | correctly executed. |
16 | 4. Please follow the copyright of each benchmark program. |
17 +--------------------------------------------------------------------------+
18 */
19 /*============================================================================
20 
21 This C header file is part of the SoftFloat IEC/IEEE Floating-point Arithmetic
22 Package, Release 2b.
23 
24 Written by John R. Hauser. This work was made possible in part by the
25 International Computer Science Institute, located at Suite 600, 1947 Center
26 Street, Berkeley, California 94704. Funding was partially provided by the
27 National Science Foundation under grant MIP-9311980. The original version
28 of this code was written as part of a project to build a fixed-point vector
29 processor in collaboration with the University of California at Berkeley,
30 overseen by Profs. Nelson Morgan and John Wawrzynek. More information
31 is available through the Web page `http://www.cs.berkeley.edu/~jhauser/
32 arithmetic/SoftFloat.html'.
33 
34 THIS SOFTWARE IS DISTRIBUTED AS IS, FOR FREE. Although reasonable effort has
35 been made to avoid it, THIS SOFTWARE MAY CONTAIN FAULTS THAT WILL AT TIMES
36 RESULT IN INCORRECT BEHAVIOR. USE OF THIS SOFTWARE IS RESTRICTED TO PERSONS
37 AND ORGANIZATIONS WHO CAN AND WILL TAKE FULL RESPONSIBILITY FOR ALL LOSSES,
38 COSTS, OR OTHER PROBLEMS THEY INCUR DUE TO THE SOFTWARE, AND WHO FURTHERMORE
39 EFFECTIVELY INDEMNIFY JOHN HAUSER AND THE INTERNATIONAL COMPUTER SCIENCE
40 INSTITUTE (possibly via similar legal warning) AGAINST ALL LOSSES, COSTS, OR
41 OTHER PROBLEMS INCURRED BY THEIR CUSTOMERS AND CLIENTS DUE TO THE SOFTWARE.
42 
43 Derivative works are acceptable, even for commercial purposes, so long as
44 (1) the source code for the derivative work includes prominent notice that
45 the work is derivative, and (2) the source code includes prominent notice with
46 these four paragraphs for those parts of this code that are retained.
47 
48 =============================================================================*/
49 
50 /*----------------------------------------------------------------------------
51 | Software IEC/IEEE floating-point types.
52 *----------------------------------------------------------------------------*/
53 typedef unsigned int float32;
54 typedef unsigned long long float64;
55 
56 /*----------------------------------------------------------------------------
57 | Software IEC/IEEE floating-point underflow tininess-detection mode.
58 *----------------------------------------------------------------------------*/
59 #define float_tininess_after_rounding 0
60 #define float_tininess_before_rounding 1
61 
62 /*----------------------------------------------------------------------------
63 | Software IEC/IEEE floating-point rounding mode.
64 *----------------------------------------------------------------------------*/
65 #define float_round_nearest_even 0
66 #define float_round_to_zero 1
67 #define float_round_up 2
68 #define float_round_down 3
69 
70 /*----------------------------------------------------------------------------
71 | Software IEC/IEEE floating-point exception flags.
72 *----------------------------------------------------------------------------*/
73 #define float_flag_inexact 1
74 #define float_flag_divbyzero 2
75 #define float_flag_underflow 4
76 #define float_flag_overflow 8
77 #define float_flag_invalid 16
unsigned long long float64
Definition: softfloat.h:54
unsigned int float32
Definition: softfloat.h:53

Generated on Mon Feb 12 2024 13:02:48 for PandA-2024.02 by doxygen 1.8.13