source: src/libcfa/algorithm @ 5721a6d

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 5721a6d was 5721a6d, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago

correctly set type for complex constants, consolidate function name tables, add offsetof, refactor printing complex constants to use basic types

  • Property mode set to 100644
File size: 1.4 KB
Line 
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//
7// alorgithm --
8//
9// Author           : Peter A. Buhr
10// Created On       : Thu Jan 28 17:12:35 2016
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Mon Feb  1 13:41:51 2016
13// Update Count     : 26
14//
15
16//---------------------------------------
17
18forall( type T | { int ?<?( T, T ); } )
19T min( const T t1, const T t2 );
20
21forall( type T | { int ?>?( T, T ); } )
22T max( const T t1, const T t2 );
23
24//---------------------------------------
25
26forall( type T )
27void swap( T * t1, T * t2 );
28
29//---------------------------------------
30
31char abs( char );
32extern "C" {
33int abs( int );
34} // extern
35long int abs( long int );
36long long int abs( long long int );
37float abs( float );
38double abs( double );
39long double abs( long double );
40float _Complex abs( float _Complex );
41double _Complex abs( double _Complex );
42long double _Complex abs( long double _Complex );
43
44//---------------------------------------
45
46void randseed( long int s );
47char random();
48int random();
49unsigned int random();
50long int random();
51unsigned long int random();
52float random();
53double random();
54float _Complex random();
55double _Complex random();
56long double _Complex random();
57
58// Local Variables: //
59// mode: c //
60// tab-width: 4 //
61// End: //
Note: See TracBrowser for help on using the repository browser.