[d3b7937] | 1 | #include <limits> |
---|
| 2 | |
---|
| 3 | int main() { |
---|
| 4 | // Integral Constants |
---|
| 5 | |
---|
| 6 | short int m = MIN; |
---|
| 7 | int m = MIN; |
---|
| 8 | long int m = MIN; |
---|
| 9 | long long int m = MIN; |
---|
| 10 | |
---|
| 11 | short int M = MAX; |
---|
| 12 | unsigned short int M = MAX; |
---|
| 13 | int M = MAX; |
---|
| 14 | unsigned int M = MAX; |
---|
| 15 | long int M = MAX; |
---|
| 16 | unsigned long int M = MAX; |
---|
| 17 | long long int M = MAX; |
---|
| 18 | unsigned long long int M = MAX; |
---|
| 19 | |
---|
| 20 | // Floating-Point Constants |
---|
| 21 | |
---|
| 22 | float pi = PI; |
---|
| 23 | float pi_2 = PI_2; |
---|
| 24 | float pi_4 = PI_4; |
---|
| 25 | float _1_pi = _1_PI; |
---|
| 26 | float _2_pi = _2_PI; |
---|
| 27 | float _2_sqrt_pi = _2_SQRT_PI; |
---|
| 28 | |
---|
| 29 | double pi = PI; |
---|
| 30 | double pi_2 = PI_2; |
---|
| 31 | double pi_4 = PI_4; |
---|
| 32 | double _1_pi = _1_PI; |
---|
| 33 | double _2_pi = _2_PI; |
---|
| 34 | double _2_SQRT_pi = _2_SQRT_PI; |
---|
| 35 | |
---|
| 36 | long double pi = PI; |
---|
| 37 | long double pi_2 = PI_2; |
---|
| 38 | long double pi_4 = PI_4; |
---|
| 39 | long double _1_pi = _1_PI; |
---|
| 40 | long double _2_pi = _2_PI; |
---|
| 41 | long double _2_sqrt_pi = _2_SQRT_PI; |
---|
| 42 | |
---|
| 43 | _Complex pi = PI; |
---|
| 44 | _Complex pi_2 = PI_2; |
---|
| 45 | _Complex pi_4 = PI_4; |
---|
| 46 | _Complex _1_pi = _1_PI; |
---|
| 47 | _Complex _2_pi = _2_PI; |
---|
| 48 | _Complex _2_sqrt_pi = _2_SQRT_PI; |
---|
| 49 | |
---|
| 50 | long _Complex pi = PI; |
---|
| 51 | long _Complex pi_2 = PI_2; |
---|
| 52 | long _Complex pi_4 = PI_4; |
---|
| 53 | long _Complex _1_pi = _1_PI; |
---|
| 54 | long _Complex _2_pi = _2_PI; |
---|
| 55 | long _Complex _2_sqrt_pi = _2_SQRT_PI; |
---|
| 56 | |
---|
| 57 | float e = E; |
---|
| 58 | float log2_e = LOG2_E; |
---|
| 59 | float log10_e = LOG10_E; |
---|
| 60 | float ln_2 = LN_2; |
---|
| 61 | float ln_10 = LN_10; |
---|
| 62 | float sqrt_2 = SQRT_2; |
---|
| 63 | float _1_sqrt_2 = _1_SQRT_2; |
---|
| 64 | |
---|
| 65 | double e = E; |
---|
| 66 | double log2_e = LOG2_E; |
---|
| 67 | double log10_e = LOG10_E; |
---|
| 68 | double ln_2 = LN_2; |
---|
| 69 | double ln_10 = LN_10; |
---|
| 70 | double sqrt_2 = SQRT_2; |
---|
| 71 | double _1_sqrt_2 = _1_SQRT_2; |
---|
| 72 | |
---|
| 73 | long double e = E; |
---|
| 74 | long double log2_e = LOG2_E; |
---|
| 75 | long double log10_e = LOG10_E; |
---|
| 76 | long double ln_2 = LN_2; |
---|
| 77 | long double ln_10 = LN_10; |
---|
| 78 | long double sqrt_2 = SQRT_2; |
---|
| 79 | long double _1_sqrt_2 = _1_SQRT_2; |
---|
| 80 | |
---|
| 81 | _Complex e = E; |
---|
| 82 | _Complex log2_e = LOG2_E; |
---|
| 83 | _Complex log10_e = LOG10_E; |
---|
| 84 | _Complex ln_2 = LN_2; |
---|
| 85 | _Complex ln_10 = LN_10; |
---|
| 86 | _Complex sqrt_2 = SQRT_2; |
---|
| 87 | _Complex _1_sqrt_2 = _1_SQRT_2; |
---|
| 88 | |
---|
| 89 | long _Complex e = E; |
---|
| 90 | long _Complex log2_e = LOG2_E; |
---|
| 91 | long _Complex log10_e = LOG10_E; |
---|
| 92 | long _Complex ln_2 = LN_2; |
---|
| 93 | long _Complex ln_10 = LN_10; |
---|
| 94 | long _Complex sqrt_2 = SQRT_2; |
---|
| 95 | long _Complex _1_sqrt_2 = _1_SQRT_2; |
---|
| 96 | } |
---|
| 97 | |
---|
| 98 | // Local Variables: // |
---|
| 99 | // tab-width: 4 // |
---|
[94980502] | 100 | // compile-command: "cfa limits.c" // |
---|
[d3b7937] | 101 | // End: // |
---|