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