[bb82c03] | 1 | // |
---|
[53ba273] | 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. |
---|
[bb82c03] | 6 | // |
---|
| 7 | // limits -- |
---|
| 8 | // |
---|
[53ba273] | 9 | // Author : Peter A. Buhr |
---|
| 10 | // Created On : Wed Apr 6 18:06:52 2016 |
---|
| 11 | // Last Modified By : Peter A. Buhr |
---|
[6fbe9a5] | 12 | // Last Modified On : Thu Mar 1 16:20:54 2018 |
---|
| 13 | // Update Count : 13 |
---|
[bb82c03] | 14 | // |
---|
[17e5e2b] | 15 | |
---|
[53a6c2a] | 16 | #pragma once |
---|
[17e5e2b] | 17 | |
---|
[d3b7937] | 18 | // Integral Constants |
---|
| 19 | |
---|
[6fbe9a5] | 20 | extern const signed char MIN; |
---|
| 21 | extern const unsigned char MIN; |
---|
| 22 | extern const short int MIN; |
---|
| 23 | extern const unsigned short int MIN; |
---|
| 24 | extern const int MIN; |
---|
| 25 | extern const unsigned int MIN; |
---|
| 26 | extern const long int MIN; |
---|
| 27 | extern const unsigned long int MIN; |
---|
| 28 | extern const long long int MIN; |
---|
| 29 | extern const unsigned long long int MIN; |
---|
| 30 | |
---|
| 31 | extern const signed char MAX; |
---|
| 32 | extern const unsigned char MAX; |
---|
| 33 | extern const short int MAX; |
---|
| 34 | extern const unsigned short int MAX; |
---|
| 35 | extern const int MAX; |
---|
| 36 | extern const unsigned int MAX; |
---|
| 37 | extern const long int MAX; |
---|
| 38 | extern const unsigned long int MAX; |
---|
| 39 | extern const long long int MAX; |
---|
| 40 | extern const unsigned long long int MAX; |
---|
[d3b7937] | 41 | |
---|
| 42 | // Floating-Point Constants |
---|
| 43 | |
---|
[6fbe9a5] | 44 | extern const float MIN; |
---|
| 45 | extern const double MIN; |
---|
| 46 | extern const long double MIN; |
---|
| 47 | extern const float _Complex MIN; |
---|
| 48 | extern const double _Complex MIN; |
---|
| 49 | extern const long double _Complex MIN; |
---|
| 50 | |
---|
| 51 | extern const float MAX; |
---|
| 52 | extern const double MAX; |
---|
| 53 | extern const long double MAX; |
---|
| 54 | extern const float _Complex MAX; |
---|
| 55 | extern const double _Complex MAX; |
---|
| 56 | extern const long double _Complex MAX; |
---|
| 57 | |
---|
| 58 | extern const float PI; // pi |
---|
| 59 | extern const float PI_2; // pi / 2 |
---|
| 60 | extern const float PI_4; // pi / 4 |
---|
| 61 | extern const float _1_PI; // 1 / pi |
---|
| 62 | extern const float _2_PI; // 2 / pi |
---|
| 63 | extern const float _2_SQRT_PI; // 2 / sqrt(pi) |
---|
| 64 | |
---|
| 65 | extern const double PI; // pi |
---|
| 66 | extern const double PI_2; // pi / 2 |
---|
| 67 | extern const double PI_4; // pi / 4 |
---|
| 68 | extern const double _1_PI; // 1 / pi |
---|
| 69 | extern const double _2_PI; // 2 / pi |
---|
| 70 | extern const double _2_SQRT_PI; // 2 / sqrt(pi) |
---|
| 71 | |
---|
| 72 | extern const long double PI; // pi |
---|
| 73 | extern const long double PI_2; // pi / 2 |
---|
| 74 | extern const long double PI_4; // pi / 4 |
---|
| 75 | extern const long double _1_PI; // 1 / pi |
---|
| 76 | extern const long double _2_PI; // 2 / pi |
---|
| 77 | extern const long double _2_SQRT_PI; // 2 / sqrt(pi) |
---|
| 78 | |
---|
| 79 | extern const float _Complex PI; // pi |
---|
| 80 | extern const float _Complex PI_2; // pi / 2 |
---|
| 81 | extern const float _Complex PI_4; // pi / 4 |
---|
| 82 | extern const float _Complex _1_PI; // 1 / pi |
---|
| 83 | extern const float _Complex _2_PI; // 2 / pi |
---|
| 84 | extern const float _Complex _2_SQRT_PI; // 2 / sqrt(pi) |
---|
| 85 | |
---|
| 86 | extern const double _Complex PI; // pi |
---|
| 87 | extern const double _Complex PI_2; // pi / 2 |
---|
| 88 | extern const double _Complex PI_4; // pi / 4 |
---|
| 89 | extern const double _Complex _1_PI; // 1 / pi |
---|
| 90 | extern const double _Complex _2_PI; // 2 / pi |
---|
| 91 | extern const double _Complex _2_SQRT_PI; // 2 / sqrt(pi) |
---|
| 92 | |
---|
| 93 | extern const long double _Complex PI; // pi |
---|
| 94 | extern const long double _Complex PI_2; // pi / 2 |
---|
| 95 | extern const long double _Complex PI_4; // pi / 4 |
---|
| 96 | extern const long double _Complex _1_PI; // 1 / pi |
---|
| 97 | extern const long double _Complex _2_PI; // 2 / pi |
---|
| 98 | extern const long double _Complex _2_SQRT_PI; // 2 / sqrt(pi) |
---|
| 99 | |
---|
| 100 | extern const float E; // e |
---|
| 101 | extern const float LOG2_E; // log_2(e) |
---|
| 102 | extern const float LOG10_E; // log_10(e) |
---|
| 103 | extern const float LN_2; // log_e(2) |
---|
| 104 | extern const float LN_10; // log_e(10) |
---|
| 105 | extern const float SQRT_2; // sqrt(2) |
---|
| 106 | extern const float _1_SQRT_2; // 1 / sqrt(2) |
---|
| 107 | |
---|
| 108 | extern const double E; // e |
---|
| 109 | extern const double LOG2_E; // log_2(e) |
---|
| 110 | extern const double LOG10_E; // log_10(e) |
---|
| 111 | extern const double LN_2; // log_e(2) |
---|
| 112 | extern const double LN_10; // log_e(10) |
---|
| 113 | extern const double SQRT_2; // sqrt(2) |
---|
| 114 | extern const double _1_SQRT_2; // 1 / sqrt(2) |
---|
| 115 | |
---|
| 116 | extern const long double E; // e |
---|
| 117 | extern const long double LOG2_E; // log_2(e) |
---|
| 118 | extern const long double LOG10_E; // log_10(e) |
---|
| 119 | extern const long double LN_2; // log_e(2) |
---|
| 120 | extern const long double LN_10; // log_e(10) |
---|
| 121 | extern const long double SQRT_2; // sqrt(2) |
---|
| 122 | extern const long double _1_SQRT_2; // 1/sqrt(2) |
---|
| 123 | |
---|
| 124 | extern const float _Complex E; // e |
---|
| 125 | extern const float _Complex LOG2_E; // log_2(e) |
---|
| 126 | extern const float _Complex LOG10_E; // log_10(e) |
---|
| 127 | extern const float _Complex LN_2; // log_e(2) |
---|
| 128 | extern const float _Complex LN_10; // log_e(10) |
---|
| 129 | extern const float _Complex SQRT_2; // sqrt(2) |
---|
| 130 | extern const float _Complex _1_SQRT_2; // 1 / sqrt(2) |
---|
| 131 | |
---|
| 132 | extern const double _Complex E; // e |
---|
| 133 | extern const double _Complex LOG2_E; // log_2(e) |
---|
| 134 | extern const double _Complex LOG10_E; // log_10(e) |
---|
| 135 | extern const double _Complex LN_2; // log_e(2) |
---|
| 136 | extern const double _Complex LN_10; // log_e(10) |
---|
| 137 | extern const double _Complex SQRT_2; // sqrt(2) |
---|
| 138 | extern const double _Complex _1_SQRT_2; // 1 / sqrt(2) |
---|
| 139 | |
---|
| 140 | extern const long double _Complex E; // e |
---|
| 141 | extern const long double _Complex LOG2_E; // log_2(e) |
---|
| 142 | extern const long double _Complex LOG10_E; // log_10(e) |
---|
| 143 | extern const long double _Complex LN_2; // log_e(2) |
---|
| 144 | extern const long double _Complex LN_10; // log_e(10) |
---|
| 145 | extern const long double _Complex SQRT_2; // sqrt(2) |
---|
| 146 | extern const long double _Complex _1_SQRT_2; // 1 / sqrt(2) |
---|
[d3b7937] | 147 | |
---|
[53ba273] | 148 | // Local Variables: // |
---|
| 149 | // mode: c // |
---|
| 150 | // tab-width: 4 // |
---|
| 151 | // End: // |
---|