Changes in / [d668182:102b0cd]
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/examples/limits.c
rd668182 r102b0cd 1 // 2 // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo 3 // 4 // The contents of this file are covered under the licence agreement in the 5 // file "LICENCE" distributed with Cforall. 6 // 7 // limits.c  8 // 9 // Author : Peter A. Buhr 10 // Created On : Tue May 10 20:44:20 2016 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue May 10 20:45:28 2016 13 // Update Count : 1 14 // 15 1 16 #include <limits> 2 17 3 int main() {4 18 // Integral Constants 5 19 6 7 8 9 20 short int m = MIN; 21 int m = MIN; 22 long int m = MIN; 23 long long int m = MIN; 10 24 11 12 13 14 15 16 17 18 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; 19 33 20 34 // FloatingPoint Constants 21 35 22 23 24 25 26 27 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; 28 42 29 30 31 32 33 34 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; 35 49 36 37 38 39 40 41 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; 42 56 43 44 45 46 47 48 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; 49 63 50 51 52 53 54 55 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; 56 70 57 58 59 60 61 62 63 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; 64 78 65 66 67 68 69 70 71 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; 72 86 73 74 75 76 77 78 79 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; 80 94 81 82 83 84 85 86 87 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; 88 102 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 } 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; 97 110 98 111 // Local Variables: //
Note: See TracChangeset
for help on using the changeset viewer.