source: src/tests/limits.c @ f85bc15

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since f85bc15 was 2701c91, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago

add more limit variables for floating point

  • Property mode set to 100644
File size: 3.5 KB
RevLine 
[3e8fb3b]1//
2// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
3//
4// The contents of this file are covered under the licence agreement in the
5// file "LICENCE" distributed with Cforall.
6//
[ebcd82b]7// limits.c --
[3e8fb3b]8//
9// Author           : Peter A. Buhr
10// Created On       : Tue May 10 20:44:20 2016
11// Last Modified By : Peter A. Buhr
[2701c91]12// Last Modified On : Thu Mar  1 16:21:55 2018
13// Update Count     : 7
[ebcd82b]14//
[3e8fb3b]15
[d3b7937]16#include <limits>
17
18// Integral Constants
19
[2701c91]20signed char m = MIN;
21unsigned char m = MIN;
[3e8fb3b]22short int m = MIN;
[2701c91]23unsigned short int m = MIN;
[3e8fb3b]24int m = MIN;
[2701c91]25unsigned int m = MIN;
[3e8fb3b]26long int m = MIN;
[2701c91]27unsigned long int m = MIN;
[3e8fb3b]28long long int m = MIN;
[2701c91]29unsigned long long int m = MIN;
[d3b7937]30
[2701c91]31signed char M = MAX;
32unsigned char M = MAX;
[3e8fb3b]33short int M = MAX;
34unsigned short int M = MAX;
35int M = MAX;
36unsigned int M = MAX;
37long int M = MAX;
38unsigned long int M = MAX;
39long long int M = MAX;
40unsigned long long int M = MAX;
[d3b7937]41
42// Floating-Point Constants
43
[2701c91]44float m = MIN;
45double m = MIN;
46long double m = MIN;
47float _Complex m = MIN;
48double _Complex m = MIN;
49long double _Complex m = MIN;
50
51float M = MAX;
52double M = MAX;
53long double M = MAX;
54float _Complex M = MAX;
55double _Complex M = MAX;
56long double _Complex M = MAX;
57
[3e8fb3b]58float pi = PI;
59float pi_2 = PI_2;
60float pi_4 = PI_4;
61float _1_pi = _1_PI;
62float _2_pi = _2_PI;
63float _2_sqrt_pi = _2_SQRT_PI;
64
65double pi = PI;
66double pi_2 = PI_2;
67double pi_4 = PI_4;
68double _1_pi = _1_PI;
69double _2_pi = _2_PI;
70double _2_SQRT_pi = _2_SQRT_PI;
71
72long double pi = PI;
73long double pi_2 = PI_2;
74long double pi_4 = PI_4;
75long double _1_pi = _1_PI;
76long double _2_pi = _2_PI;
77long double _2_sqrt_pi = _2_SQRT_PI;
78
[2701c91]79float _Complex pi = PI;
80float _Complex pi_2 = PI_2;
81float _Complex pi_4 = PI_4;
82float _Complex _1_pi = _1_PI;
83float _Complex _2_pi = _2_PI;
84float _Complex _2_sqrt_pi = _2_SQRT_PI;
85
86double _Complex pi = PI;
87double _Complex pi_2 = PI_2;
88double _Complex pi_4 = PI_4;
89double _Complex _1_pi = _1_PI;
90double _Complex _2_pi = _2_PI;
91double _Complex _2_sqrt_pi = _2_SQRT_PI;
92
93long double _Complex pi = PI;
94long double _Complex pi_2 = PI_2;
95long double _Complex pi_4 = PI_4;
96long double _Complex _1_pi = _1_PI;
97long double _Complex _2_pi = _2_PI;
98long double _Complex _2_sqrt_pi = _2_SQRT_PI;
[3e8fb3b]99
100float e = E;
101float log2_e = LOG2_E;
102float log10_e = LOG10_E;
103float ln_2 = LN_2;
104float ln_10 = LN_10;
105float sqrt_2 = SQRT_2;
106float _1_sqrt_2 = _1_SQRT_2;
107
108double e = E;
109double log2_e = LOG2_E;
110double log10_e = LOG10_E;
111double ln_2 = LN_2;
112double ln_10 = LN_10;
113double sqrt_2 = SQRT_2;
114double _1_sqrt_2 = _1_SQRT_2;
115
116long double e = E;
117long double log2_e = LOG2_E;
118long double log10_e = LOG10_E;
119long double ln_2 = LN_2;
120long double ln_10 = LN_10;
121long double sqrt_2 = SQRT_2;
122long double _1_sqrt_2 = _1_SQRT_2;
123
[2701c91]124float _Complex e = E;
125float _Complex log2_e = LOG2_E;
126float _Complex log10_e = LOG10_E;
127float _Complex ln_2 = LN_2;
128float _Complex ln_10 = LN_10;
129float _Complex sqrt_2 = SQRT_2;
130float _Complex _1_sqrt_2 = _1_SQRT_2;
131
132double _Complex e = E;
133double _Complex log2_e = LOG2_E;
134double _Complex log10_e = LOG10_E;
135double _Complex ln_2 = LN_2;
136double _Complex ln_10 = LN_10;
137double _Complex sqrt_2 = SQRT_2;
138double _Complex _1_sqrt_2 = _1_SQRT_2;
139
140long double _Complex e = E;
141long double _Complex log2_e = LOG2_E;
142long double _Complex log10_e = LOG10_E;
143long double _Complex ln_2 = LN_2;
144long double _Complex ln_10 = LN_10;
145long double _Complex sqrt_2 = SQRT_2;
146long double _Complex _1_sqrt_2 = _1_SQRT_2;
[d3b7937]147
[ebcd82b]148int main(int argc, char const *argv[]) {
149        //DUMMY
150        return 0;
151}
152
[d3b7937]153// Local Variables: //
154// tab-width: 4 //
[94980502]155// compile-command: "cfa limits.c" //
[d3b7937]156// End: //
Note: See TracBrowser for help on using the repository browser.