source: src/tests/limits.c @ 026a0f5

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since 026a0f5 was ebcd82b, checked in by Thierry Delisle <tdelisle@…>, 8 years ago

implemented some of the expected outputs, fixed printing in tests.py, added dummy main to limits

  • Property mode set to 100644
File size: 2.5 KB
Line 
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//
7// limits.c --
8//
9// Author           : Peter A. Buhr
10// Created On       : Tue May 10 20:44:20 2016
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Tue May 10 20:45:28 2016
13// Update Count     : 1
14//
15
16#include <limits>
17
18// Integral Constants
19
20short int m = MIN;
21int m = MIN;
22long int m = MIN;
23long long int m = MIN;
24
25short int M = MAX;
26unsigned short int M = MAX;
27int M = MAX;
28unsigned int M = MAX;
29long int M = MAX;
30unsigned long int M = MAX;
31long long int M = MAX;
32unsigned long long int M = MAX;
33
34// Floating-Point Constants
35
36float pi = PI;
37float pi_2 = PI_2;
38float pi_4 = PI_4;
39float _1_pi = _1_PI;
40float _2_pi = _2_PI;
41float _2_sqrt_pi = _2_SQRT_PI;
42
43double pi = PI;
44double pi_2 = PI_2;
45double pi_4 = PI_4;
46double _1_pi = _1_PI;
47double _2_pi = _2_PI;
48double _2_SQRT_pi = _2_SQRT_PI;
49
50long double pi = PI;
51long double pi_2 = PI_2;
52long double pi_4 = PI_4;
53long double _1_pi = _1_PI;
54long double _2_pi = _2_PI;
55long double _2_sqrt_pi = _2_SQRT_PI;
56
57_Complex pi = PI;
58_Complex pi_2 = PI_2;
59_Complex pi_4 = PI_4;
60_Complex _1_pi = _1_PI;
61_Complex _2_pi = _2_PI;
62_Complex _2_sqrt_pi = _2_SQRT_PI;
63
64long _Complex pi = PI;
65long _Complex pi_2 = PI_2;
66long _Complex pi_4 = PI_4;
67long _Complex _1_pi = _1_PI;
68long _Complex _2_pi = _2_PI;
69long _Complex _2_sqrt_pi = _2_SQRT_PI;
70
71float e = E;
72float log2_e = LOG2_E;
73float log10_e = LOG10_E;
74float ln_2 = LN_2;
75float ln_10 = LN_10;
76float sqrt_2 = SQRT_2;
77float _1_sqrt_2 = _1_SQRT_2;
78
79double e = E;
80double log2_e = LOG2_E;
81double log10_e = LOG10_E;
82double ln_2 = LN_2;
83double ln_10 = LN_10;
84double sqrt_2 = SQRT_2;
85double _1_sqrt_2 = _1_SQRT_2;
86
87long double e = E;
88long double log2_e = LOG2_E;
89long double log10_e = LOG10_E;
90long double ln_2 = LN_2;
91long double ln_10 = LN_10;
92long double sqrt_2 = SQRT_2;
93long double _1_sqrt_2 = _1_SQRT_2;
94
95_Complex e = E;
96_Complex log2_e = LOG2_E;
97_Complex log10_e = LOG10_E;
98_Complex ln_2 = LN_2;
99_Complex ln_10 = LN_10;
100_Complex sqrt_2 = SQRT_2;
101_Complex _1_sqrt_2 = _1_SQRT_2;
102
103long _Complex e = E;
104long _Complex log2_e = LOG2_E;
105long _Complex log10_e = LOG10_E;
106long _Complex ln_2 = LN_2;
107long _Complex ln_10 = LN_10;
108long _Complex sqrt_2 = SQRT_2;
109long _Complex _1_sqrt_2 = _1_SQRT_2;
110
111int main(int argc, char const *argv[]) {
112        //DUMMY
113        return 0;
114}
115
116// Local Variables: //
117// tab-width: 4 //
118// compile-command: "cfa limits.c" //
119// End: //
Note: See TracBrowser for help on using the repository browser.