Changes in src/examples/limits.c [3e8fb3b:94980502]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/examples/limits.c
r3e8fb3b r94980502 1 //2 // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo3 //4 // The contents of this file are covered under the licence agreement in the5 // file "LICENCE" distributed with Cforall.6 //7 // limits.c --8 //9 // Author : Peter A. Buhr10 // Created On : Tue May 10 20:44:20 201611 // Last Modified By : Peter A. Buhr12 // Last Modified On : Tue May 10 20:45:28 201613 // Update Count : 114 //15 16 1 #include <limits> 17 2 3 int main() { 18 4 // Integral Constants 19 5 20 short int m = MIN;21 int m = MIN;22 long int m = MIN;23 long long int m = MIN;6 short int m = MIN; 7 int m = MIN; 8 long int m = MIN; 9 long long int m = MIN; 24 10 25 short int M = MAX;26 unsigned short int M = MAX;27 int M = MAX;28 unsigned int M = MAX;29 long int M = MAX;30 unsigned long int M = MAX;31 long long int M = MAX;32 unsigned long long int M = MAX;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; 33 19 34 20 // Floating-Point Constants 35 21 36 float pi = PI;37 float pi_2 = PI_2;38 float pi_4 = PI_4;39 float _1_pi = _1_PI;40 float _2_pi = _2_PI;41 float _2_sqrt_pi = _2_SQRT_PI;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; 42 28 43 double pi = PI;44 double pi_2 = PI_2;45 double pi_4 = PI_4;46 double _1_pi = _1_PI;47 double _2_pi = _2_PI;48 double _2_SQRT_pi = _2_SQRT_PI;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; 49 35 50 long double pi = PI;51 long double pi_2 = PI_2;52 long double pi_4 = PI_4;53 long double _1_pi = _1_PI;54 long double _2_pi = _2_PI;55 long double _2_sqrt_pi = _2_SQRT_PI;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; 56 42 57 _Complex pi = PI;58 _Complex pi_2 = PI_2;59 _Complex pi_4 = PI_4;60 _Complex _1_pi = _1_PI;61 _Complex _2_pi = _2_PI;62 _Complex _2_sqrt_pi = _2_SQRT_PI;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; 63 49 64 long _Complex pi = PI;65 long _Complex pi_2 = PI_2;66 long _Complex pi_4 = PI_4;67 long _Complex _1_pi = _1_PI;68 long _Complex _2_pi = _2_PI;69 long _Complex _2_sqrt_pi = _2_SQRT_PI;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; 70 56 71 float e = E;72 float log2_e = LOG2_E;73 float log10_e = LOG10_E;74 float ln_2 = LN_2;75 float ln_10 = LN_10;76 float sqrt_2 = SQRT_2;77 float _1_sqrt_2 = _1_SQRT_2;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; 78 64 79 double e = E;80 double log2_e = LOG2_E;81 double log10_e = LOG10_E;82 double ln_2 = LN_2;83 double ln_10 = LN_10;84 double sqrt_2 = SQRT_2;85 double _1_sqrt_2 = _1_SQRT_2;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; 86 72 87 long double e = E;88 long double log2_e = LOG2_E;89 long double log10_e = LOG10_E;90 long double ln_2 = LN_2;91 long double ln_10 = LN_10;92 long double sqrt_2 = SQRT_2;93 long double _1_sqrt_2 = _1_SQRT_2;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; 94 80 95 _Complex e = E;96 _Complex log2_e = LOG2_E;97 _Complex log10_e = LOG10_E;98 _Complex ln_2 = LN_2;99 _Complex ln_10 = LN_10;100 _Complex sqrt_2 = SQRT_2;101 _Complex _1_sqrt_2 = _1_SQRT_2;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; 102 88 103 long _Complex e = E; 104 long _Complex log2_e = LOG2_E; 105 long _Complex log10_e = LOG10_E; 106 long _Complex ln_2 = LN_2; 107 long _Complex ln_10 = LN_10; 108 long _Complex sqrt_2 = SQRT_2; 109 long _Complex _1_sqrt_2 = _1_SQRT_2; 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 } 110 97 111 98 // Local Variables: //
Note: See TracChangeset
for help on using the changeset viewer.