Changeset 102b0cd


Ignore:
Timestamp:
May 13, 2016, 1:28:42 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
189243c
Parents:
d668182 (diff), 346a0bf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into ctor

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
    116#include <limits>
    217
    3 int main() {
    418// Integral Constants
    519
    6         short int m = MIN;
    7         int m = MIN;
    8         long int m = MIN;
    9         long long int m = MIN;
     20short int m = MIN;
     21int m = MIN;
     22long int m = MIN;
     23long long int m = MIN;
    1024
    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;
     25short int M = MAX;
     26unsigned short int M = MAX;
     27int M = MAX;
     28unsigned int M = MAX;
     29long int M = MAX;
     30unsigned long int M = MAX;
     31long long int M = MAX;
     32unsigned long long int M = MAX;
    1933
    2034// Floating-Point Constants
    2135
    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;
     36float pi = PI;
     37float pi_2 = PI_2;
     38float pi_4 = PI_4;
     39float _1_pi = _1_PI;
     40float _2_pi = _2_PI;
     41float _2_sqrt_pi = _2_SQRT_PI;
    2842
    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;
     43double pi = PI;
     44double pi_2 = PI_2;
     45double pi_4 = PI_4;
     46double _1_pi = _1_PI;
     47double _2_pi = _2_PI;
     48double _2_SQRT_pi = _2_SQRT_PI;
    3549
    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;
     50long double pi = PI;
     51long double pi_2 = PI_2;
     52long double pi_4 = PI_4;
     53long double _1_pi = _1_PI;
     54long double _2_pi = _2_PI;
     55long double _2_sqrt_pi = _2_SQRT_PI;
    4256
    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;
     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;
    4963
    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;
     64long _Complex pi = PI;
     65long _Complex pi_2 = PI_2;
     66long _Complex pi_4 = PI_4;
     67long _Complex _1_pi = _1_PI;
     68long _Complex _2_pi = _2_PI;
     69long _Complex _2_sqrt_pi = _2_SQRT_PI;
    5670
    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;
     71float e = E;
     72float log2_e = LOG2_E;
     73float log10_e = LOG10_E;
     74float ln_2 = LN_2;
     75float ln_10 = LN_10;
     76float sqrt_2 = SQRT_2;
     77float _1_sqrt_2 = _1_SQRT_2;
    6478
    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;
     79double e = E;
     80double log2_e = LOG2_E;
     81double log10_e = LOG10_E;
     82double ln_2 = LN_2;
     83double ln_10 = LN_10;
     84double sqrt_2 = SQRT_2;
     85double _1_sqrt_2 = _1_SQRT_2;
    7286
    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;
     87long double e = E;
     88long double log2_e = LOG2_E;
     89long double log10_e = LOG10_E;
     90long double ln_2 = LN_2;
     91long double ln_10 = LN_10;
     92long double sqrt_2 = SQRT_2;
     93long double _1_sqrt_2 = _1_SQRT_2;
    8094
    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;
     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;
    88102
    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 }
     103long _Complex e = E;
     104long _Complex log2_e = LOG2_E;
     105long _Complex log10_e = LOG10_E;
     106long _Complex ln_2 = LN_2;
     107long _Complex ln_10 = LN_10;
     108long _Complex sqrt_2 = SQRT_2;
     109long _Complex _1_sqrt_2 = _1_SQRT_2;
    97110
    98111// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.