aaron-thesisarm-ehcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change
on this file since b4cd03b7 was
b4cd03b7,
checked in by Rob Schluntz <rschlunt@…>, 7 years ago
|
fix many warnings from gcc by adding appropriate casts to adapter parameters
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[d3b7937] | 1 | // |
---|
| 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. |
---|
| 6 | // |
---|
[b4cd03b7] | 7 | // alorgithm -- |
---|
[d3b7937] | 8 | // |
---|
| 9 | // Author : Peter A. Buhr |
---|
| 10 | // Created On : Thu Jan 28 17:12:35 2016 |
---|
| 11 | // Last Modified By : Peter A. Buhr |
---|
[5721a6d] | 12 | // Last Modified On : Mon Feb 1 13:41:51 2016 |
---|
| 13 | // Update Count : 26 |
---|
[d3b7937] | 14 | // |
---|
| 15 | |
---|
[5721a6d] | 16 | //--------------------------------------- |
---|
| 17 | |
---|
[b4cd03b7] | 18 | forall( type T | { int ?<?( const T, const T ); } ) |
---|
[d3b7937] | 19 | T min( const T t1, const T t2 ); |
---|
| 20 | |
---|
[b4cd03b7] | 21 | forall( type T | { int ?>?( const T, const T ); } ) |
---|
[d3b7937] | 22 | T max( const T t1, const T t2 ); |
---|
| 23 | |
---|
[5721a6d] | 24 | //--------------------------------------- |
---|
| 25 | |
---|
| 26 | forall( type T ) |
---|
| 27 | void swap( T * t1, T * t2 ); |
---|
| 28 | |
---|
| 29 | //--------------------------------------- |
---|
| 30 | |
---|
[d3b7937] | 31 | char abs( char ); |
---|
| 32 | extern "C" { |
---|
| 33 | int abs( int ); |
---|
| 34 | } // extern |
---|
| 35 | long int abs( long int ); |
---|
| 36 | long long int abs( long long int ); |
---|
| 37 | float abs( float ); |
---|
| 38 | double abs( double ); |
---|
| 39 | long double abs( long double ); |
---|
| 40 | float _Complex abs( float _Complex ); |
---|
| 41 | double _Complex abs( double _Complex ); |
---|
| 42 | long double _Complex abs( long double _Complex ); |
---|
| 43 | |
---|
[5721a6d] | 44 | //--------------------------------------- |
---|
| 45 | |
---|
| 46 | void randseed( long int s ); |
---|
| 47 | char random(); |
---|
| 48 | int random(); |
---|
| 49 | unsigned int random(); |
---|
| 50 | long int random(); |
---|
| 51 | unsigned long int random(); |
---|
| 52 | float random(); |
---|
| 53 | double random(); |
---|
| 54 | float _Complex random(); |
---|
| 55 | double _Complex random(); |
---|
| 56 | long double _Complex random(); |
---|
| 57 | |
---|
[d3b7937] | 58 | // Local Variables: // |
---|
| 59 | // mode: c // |
---|
| 60 | // tab-width: 4 // |
---|
| 61 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.