source: src/libcfa/limits @ ff2d7341

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 ff2d7341 was 17e5e2b, checked in by Thierry Delisle <tdelisle@…>, 8 years ago

Added proper include guards to cfa headers so they can be added to the c++ include path without issues

  • Property mode set to 100644
File size: 4.0 KB
Line 
1//
2// Cforall Version 1.0.0 Copyright (C) 2016 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 --
8//
9// Author           : Peter A. Buhr
10// Created On       : Wed Apr  6 18:06:52 2016
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Wed Apr  6 21:08:16 2016
13// Update Count     : 6
14//
15
16#ifdef __CFORALL__
17
18#ifndef LIMITS_H
19#define LIMITS_H
20
21// Integral Constants
22
23extern const short int MIN;
24extern const int MIN;
25extern const long int MIN;
26extern const long long int MIN;
27
28extern const short int MAX;
29extern const unsigned short int MAX;
30extern const int MAX;
31extern const unsigned int MAX;
32extern const long int MAX;
33extern const unsigned long int MAX;
34extern const long long int MAX;
35extern const unsigned long long int MAX;
36
37// Floating-Point Constants
38
39extern const float PI;                                                                  // pi
40extern const float PI_2;                                                                // pi / 2
41extern const float PI_4;                                                                // pi / 4
42extern const float _1_PI;                                                               // 1 / pi
43extern const float _2_PI;                                                               // 2 / pi
44extern const float _2_SQRT_PI;                                                  // 2 / sqrt(pi)
45
46extern const double PI;                                                                 // pi
47extern const double PI_2;                                                               // pi / 2
48extern const double PI_4;                                                               // pi / 4
49extern const double _1_PI;                                                              // 1 / pi
50extern const double _2_PI;                                                              // 2 / pi
51extern const double _2_SQRT_PI;                                                 // 2 / sqrt(pi)
52
53extern const long double PI;                                                    // pi
54extern const long double PI_2;                                                  // pi / 2
55extern const long double PI_4;                                                  // pi / 4
56extern const long double _1_PI;                                                 // 1 / pi
57extern const long double _2_PI;                                                 // 2 / pi
58extern const long double _2_SQRT_PI;                                    // 2 / sqrt(pi)
59
60extern const _Complex PI;                                                               // pi
61extern const _Complex PI_2;                                                             // pi / 2
62extern const _Complex PI_4;                                                             // pi / 4
63extern const _Complex _1_PI;                                                    // 1 / pi
64extern const _Complex _2_PI;                                                    // 2 / pi
65extern const _Complex _2_SQRT_PI;                                               // 2 / sqrt(pi)
66
67extern const long _Complex PI;                                                  // pi
68extern const long _Complex PI_2;                                                // pi / 2
69extern const long _Complex PI_4;                                                // pi / 4
70extern const long _Complex _1_PI;                                               // 1 / pi
71extern const long _Complex _2_PI;                                               // 2 / pi
72extern const long _Complex _2_SQRT_PI;                                  // 2 / sqrt(pi)
73
74extern const float E;                                                                   // e
75extern const float LOG2_E;                                                              // log_2(e)
76extern const float LOG10_E;                                                             // log_10(e)
77extern const float LN_2;                                                                // log_e(2)
78extern const float LN_10;                                                               // log_e(10)
79extern const float SQRT_2;                                                              // sqrt(2)
80extern const float _1_SQRT_2;                                                   // 1 / sqrt(2)
81
82extern const double E;                                                                  // e
83extern const double LOG2_E;                                                             // log_2(e)
84extern const double LOG10_E;                                                    // log_10(e)
85extern const double LN_2;                                                               // log_e(2)
86extern const double LN_10;                                                              // log_e(10)
87extern const double SQRT_2;                                                             // sqrt(2)
88extern const double _1_SQRT_2;                                                  // 1 / sqrt(2)
89
90extern const long double E;                                                             // e
91extern const long double LOG2_E;                                                // log_2(e)
92extern const long double LOG10_E;                                               // log_10(e)
93extern const long double LN_2;                                                  // log_e(2)
94extern const long double LN_10;                                                 // log_e(10)
95extern const long double SQRT_2;                                                // sqrt(2)
96extern const long double _1_SQRT_2;                                             // 1/sqrt(2)
97
98extern const _Complex E;                                                                // e
99extern const _Complex LOG2_E;                                                   // log_2(e)
100extern const _Complex LOG10_E;                                                  // log_10(e)
101extern const _Complex LN_2;                                                             // log_e(2)
102extern const _Complex LN_10;                                                    // log_e(10)
103extern const _Complex SQRT_2;                                                   // sqrt(2)
104extern const _Complex _1_SQRT_2;                                                // 1 / sqrt(2)
105
106extern const long _Complex E;                                                   // e
107extern const long _Complex LOG2_E;                                              // log_2(e)
108extern const long _Complex LOG10_E;                                             // log_10(e)
109extern const long _Complex LN_2;                                                // log_e(2)
110extern const long _Complex LN_10;                                               // log_e(10)
111extern const long _Complex SQRT_2;                                              // sqrt(2)
112extern const long _Complex _1_SQRT_2;                                   // 1 / sqrt(2)
113
114#endif // LIMITS_H
115
116#else
117#include_next <limits>
118#endif //__CFORALL__
119
120// Local Variables: //
121// mode: c //
122// tab-width: 4 //
123// End: //
Note: See TracBrowser for help on using the repository browser.