Changes in src/libcfa/algorithm.c [b4cd03b7:5721a6d]
- File:
-
- 1 edited
-
src/libcfa/algorithm.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/algorithm.c
rb4cd03b7 r5721a6d 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // algorithm.c -- 7 // algorithm.c -- 8 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Thu Jan 28 17:10:29 2016 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Thu Feb 04 17:19:12201613 // Update Count : 5 411 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Feb 1 13:42:05 2016 13 // Update Count : 52 14 14 // 15 15 16 16 #include "algorithm" 17 17 18 forall( type T | { int ?<?( const T, constT ); } )18 forall( type T | { int ?<?( T, T ); } ) 19 19 T min( const T t1, const T t2 ) { 20 20 return t1 < t2 ? t1 : t2; 21 21 } // min 22 22 23 forall( type T | { int ?>?( const T, constT ); } )23 forall( type T | { int ?>?( T, T ); } ) 24 24 T max( const T t1, const T t2 ) { 25 25 return t1 > t2 ? t1 : t2;
Note:
See TracChangeset
for help on using the changeset viewer.