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