Changes in src/libcfa/stdlib [bd85400:0438091]
- File:
-
- 1 edited
-
src/libcfa/stdlib (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/stdlib
rbd85400 r0438091 10 10 // Created On : Thu Jan 28 17:12:35 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Feb 5 15:21:18201613 // Update Count : 6 112 // Last Modified On : Tue Mar 22 22:34:24 2016 13 // Update Count : 69 14 14 // 15 15 … … 20 20 } // extern "C" 21 21 22 forall( type T ) T * memset( T * ptr, unsigned char fill ); // use default value '\0' for fill 23 forall( type T ) T * memset( T * ptr ); // remove when default value available 22 forall( otype T ) T * malloc( void ); 23 forall( otype T ) T * malloc( char fill ); 24 forall( otype T ) T * malloc( T * ptr, size_t size ); 25 forall( otype T ) T * malloc( T * ptr, size_t size, unsigned char fill ); 26 forall( otype T ) T * calloc( size_t size ); 27 forall( otype T ) T * realloc( T * ptr, size_t size ); 28 forall( otype T ) T * realloc( T * ptr, size_t size, unsigned char fill ); 24 29 25 forall( type T ) T * malloc( void ); 26 forall( type T ) T * malloc( char fill ); 27 forall( type T ) T * malloc( size_t size ); 28 forall( type T ) T * malloc( T * ptr, size_t size ); 29 forall( type T ) T * malloc( T * ptr, size_t size, unsigned char fill ); 30 forall( type T ) T * calloc( size_t size ); 31 forall( type T ) T * realloc( T * ptr, size_t size ); 32 forall( type T ) T * realloc( T * ptr, size_t size, unsigned char fill ); 30 forall( otype T ) T * aligned_alloc( size_t alignment ); 31 forall( otype T ) T * memalign( size_t alignment ); // deprecated 32 forall( otype T ) int posix_memalign( T ** ptr, size_t alignment ); 33 33 34 forall( type T ) T * aligned_alloc( size_t alignment ); 35 forall( type T ) T * memalign( size_t alignment ); // deprecated 36 forall( type T ) int posix_memalign( T ** ptr, size_t alignment ); 34 forall( otype T ) T * memset( T * ptr, unsigned char fill ); // use default value '\0' for fill 35 forall( otype T ) T * memset( T * ptr ); // remove when default value available 37 36 38 37 //--------------------------------------- … … 66 65 //--------------------------------------- 67 66 68 forall( type T | { int ?<?( T, T ); } )67 forall( otype T | { int ?<?( T, T ); } ) 69 68 T * bsearch( const T key, const T * arr, size_t dimension ); 70 69 71 forall( type T | { int ?<?( T, T ); } )70 forall( otype T | { int ?<?( T, T ); } ) 72 71 void qsort( const T * arr, size_t dimension ); 73 72 74 73 //--------------------------------------- 75 74 76 forall( type T | { T ?/?( T, T ); T ?%?( T, T ); } )75 forall( otype T | { T ?/?( T, T ); T ?%?( T, T ); } ) 77 76 [ T, T ] div( T t1, T t2 ); 78 77 … … 94 93 //--------------------------------------- 95 94 96 void rand seed( long int s );97 char rand om();98 int rand om();99 unsigned int rand om();100 long int rand om();101 unsigned long int rand om();102 float rand om();103 double rand om();104 float _Complex rand om();105 double _Complex rand om();106 long double _Complex rand om();95 void rand48seed( long int s ); 96 char rand48(); 97 int rand48(); 98 unsigned int rand48(); 99 long int rand48(); 100 unsigned long int rand48(); 101 float rand48(); 102 double rand48(); 103 float _Complex rand48(); 104 double _Complex rand48(); 105 long double _Complex rand48(); 107 106 108 107 //--------------------------------------- 109 108 110 forall( type T | { int ?<?( T, T ); } )109 forall( otype T | { int ?<?( T, T ); } ) 111 110 T min( const T t1, const T t2 ); 112 111 113 forall( type T | { int ?>?( T, T ); } )112 forall( otype T | { int ?>?( T, T ); } ) 114 113 T max( const T t1, const T t2 ); 115 114 116 forall( type T )115 forall( otype T ) 117 116 void swap( T * t1, T * t2 ); 118 117
Note:
See TracChangeset
for help on using the changeset viewer.