[53ba273] | 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 |
|
---|
[17e5e2b] | 16 | #ifdef __CFORALL__
|
---|
| 17 |
|
---|
| 18 | #ifndef LIMITS_H
|
---|
| 19 | #define LIMITS_H
|
---|
| 20 |
|
---|
[d3b7937] | 21 | // Integral Constants
|
---|
| 22 |
|
---|
[53ba273] | 23 | extern const short int MIN;
|
---|
| 24 | extern const int MIN;
|
---|
| 25 | extern const long int MIN;
|
---|
| 26 | extern const long long int MIN;
|
---|
[d3b7937] | 27 |
|
---|
[53ba273] | 28 | extern const short int MAX;
|
---|
| 29 | extern const unsigned short int MAX;
|
---|
| 30 | extern const int MAX;
|
---|
| 31 | extern const unsigned int MAX;
|
---|
| 32 | extern const long int MAX;
|
---|
| 33 | extern const unsigned long int MAX;
|
---|
| 34 | extern const long long int MAX;
|
---|
| 35 | extern const unsigned long long int MAX;
|
---|
[d3b7937] | 36 |
|
---|
| 37 | // Floating-Point Constants
|
---|
| 38 |
|
---|
[53ba273] | 39 | extern const float PI; // pi
|
---|
| 40 | extern const float PI_2; // pi / 2
|
---|
| 41 | extern const float PI_4; // pi / 4
|
---|
| 42 | extern const float _1_PI; // 1 / pi
|
---|
| 43 | extern const float _2_PI; // 2 / pi
|
---|
| 44 | extern const float _2_SQRT_PI; // 2 / sqrt(pi)
|
---|
| 45 |
|
---|
| 46 | extern const double PI; // pi
|
---|
| 47 | extern const double PI_2; // pi / 2
|
---|
| 48 | extern const double PI_4; // pi / 4
|
---|
| 49 | extern const double _1_PI; // 1 / pi
|
---|
| 50 | extern const double _2_PI; // 2 / pi
|
---|
| 51 | extern const double _2_SQRT_PI; // 2 / sqrt(pi)
|
---|
[d3b7937] | 52 |
|
---|
[53ba273] | 53 | extern const long double PI; // pi
|
---|
| 54 | extern const long double PI_2; // pi / 2
|
---|
| 55 | extern const long double PI_4; // pi / 4
|
---|
| 56 | extern const long double _1_PI; // 1 / pi
|
---|
| 57 | extern const long double _2_PI; // 2 / pi
|
---|
| 58 | extern const long double _2_SQRT_PI; // 2 / sqrt(pi)
|
---|
[d3b7937] | 59 |
|
---|
[53ba273] | 60 | extern const _Complex PI; // pi
|
---|
| 61 | extern const _Complex PI_2; // pi / 2
|
---|
| 62 | extern const _Complex PI_4; // pi / 4
|
---|
| 63 | extern const _Complex _1_PI; // 1 / pi
|
---|
| 64 | extern const _Complex _2_PI; // 2 / pi
|
---|
| 65 | extern const _Complex _2_SQRT_PI; // 2 / sqrt(pi)
|
---|
[d3b7937] | 66 |
|
---|
[53ba273] | 67 | extern const long _Complex PI; // pi
|
---|
| 68 | extern const long _Complex PI_2; // pi / 2
|
---|
| 69 | extern const long _Complex PI_4; // pi / 4
|
---|
| 70 | extern const long _Complex _1_PI; // 1 / pi
|
---|
| 71 | extern const long _Complex _2_PI; // 2 / pi
|
---|
| 72 | extern const long _Complex _2_SQRT_PI; // 2 / sqrt(pi)
|
---|
[d3b7937] | 73 |
|
---|
[53ba273] | 74 | extern const float E; // e
|
---|
| 75 | extern const float LOG2_E; // log_2(e)
|
---|
| 76 | extern const float LOG10_E; // log_10(e)
|
---|
| 77 | extern const float LN_2; // log_e(2)
|
---|
| 78 | extern const float LN_10; // log_e(10)
|
---|
| 79 | extern const float SQRT_2; // sqrt(2)
|
---|
| 80 | extern const float _1_SQRT_2; // 1 / sqrt(2)
|
---|
[d3b7937] | 81 |
|
---|
[53ba273] | 82 | extern const double E; // e
|
---|
| 83 | extern const double LOG2_E; // log_2(e)
|
---|
| 84 | extern const double LOG10_E; // log_10(e)
|
---|
| 85 | extern const double LN_2; // log_e(2)
|
---|
| 86 | extern const double LN_10; // log_e(10)
|
---|
| 87 | extern const double SQRT_2; // sqrt(2)
|
---|
| 88 | extern const double _1_SQRT_2; // 1 / sqrt(2)
|
---|
[d3b7937] | 89 |
|
---|
[53ba273] | 90 | extern const long double E; // e
|
---|
| 91 | extern const long double LOG2_E; // log_2(e)
|
---|
| 92 | extern const long double LOG10_E; // log_10(e)
|
---|
| 93 | extern const long double LN_2; // log_e(2)
|
---|
| 94 | extern const long double LN_10; // log_e(10)
|
---|
| 95 | extern const long double SQRT_2; // sqrt(2)
|
---|
| 96 | extern const long double _1_SQRT_2; // 1/sqrt(2)
|
---|
[d3b7937] | 97 |
|
---|
[53ba273] | 98 | extern const _Complex E; // e
|
---|
| 99 | extern const _Complex LOG2_E; // log_2(e)
|
---|
| 100 | extern const _Complex LOG10_E; // log_10(e)
|
---|
| 101 | extern const _Complex LN_2; // log_e(2)
|
---|
| 102 | extern const _Complex LN_10; // log_e(10)
|
---|
| 103 | extern const _Complex SQRT_2; // sqrt(2)
|
---|
| 104 | extern const _Complex _1_SQRT_2; // 1 / sqrt(2)
|
---|
[d3b7937] | 105 |
|
---|
[53ba273] | 106 | extern const long _Complex E; // e
|
---|
| 107 | extern const long _Complex LOG2_E; // log_2(e)
|
---|
| 108 | extern const long _Complex LOG10_E; // log_10(e)
|
---|
| 109 | extern const long _Complex LN_2; // log_e(2)
|
---|
| 110 | extern const long _Complex LN_10; // log_e(10)
|
---|
| 111 | extern const long _Complex SQRT_2; // sqrt(2)
|
---|
| 112 | extern const long _Complex _1_SQRT_2; // 1 / sqrt(2)
|
---|
[d3b7937] | 113 |
|
---|
[17e5e2b] | 114 | #endif // LIMITS_H
|
---|
| 115 |
|
---|
| 116 | #else
|
---|
| 117 | #include_next <limits>
|
---|
| 118 | #endif //__CFORALL__
|
---|
| 119 |
|
---|
[53ba273] | 120 | // Local Variables: //
|
---|
| 121 | // mode: c //
|
---|
| 122 | // tab-width: 4 //
|
---|
| 123 | // End: //
|
---|