Changeset fc2cd7d6
- Timestamp:
- Feb 26, 2017, 1:09:56 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 3f22503
- Parents:
- ef9cc56 (diff), bf26fa5 (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. - Location:
- src/libcfa
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/iostream
ref9cc56 rfc2cd7d6 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jul 12 18:01:09 201613 // Update Count : 9 312 // Last Modified On : Fri Feb 24 21:09:09 2017 13 // Update Count : 94 14 14 // 15 15 … … 45 45 46 46 forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, char ); 47 forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, signed char ); 48 forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, unsigned char ); 47 49 48 50 forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, short int ); -
src/libcfa/iostream.c
ref9cc56 rfc2cd7d6 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jul 12 18:01:39 201613 // Update Count : 30 612 // Last Modified On : Fri Feb 24 21:09:59 2017 13 // Update Count : 307 14 14 // 15 15 … … 26 26 ostype * ?|?( ostype *os, char c ) { 27 27 prtfmt( os, "%c", c ); 28 sepOff( os ); 29 return os; 30 } // ?|? 31 32 forall( dtype ostype | ostream( ostype ) ) 33 ostype * ?|?( ostype *os, signed char c ) { 34 prtfmt( os, "%hhd", c ); 35 sepOff( os ); 36 return os; 37 } // ?|? 38 39 forall( dtype ostype | ostream( ostype ) ) 40 ostype * ?|?( ostype *os, unsigned char c ) { 41 prtfmt( os, "%hhu", c ); 28 42 sepOff( os ); 29 43 return os; -
src/libcfa/stdlib
ref9cc56 rfc2cd7d6 10 10 // Created On : Thu Jan 28 17:12:35 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 23 14:11:47201713 // Update Count : 10 012 // Last Modified On : Fri Feb 24 21:07:16 2017 13 // Update Count : 101 14 14 // 15 15 … … 95 95 //--------------------------------------- 96 96 97 char abs(char );97 unsigned char abs( signed char ); 98 98 extern "C" { int abs( int ); } // use default C routine for int 99 long int abs( long int );100 long long int abs( long long int );99 unsigned long int abs( long int ); 100 unsigned long long int abs( long long int ); 101 101 float abs( float ); 102 102 double abs( double ); -
src/libcfa/stdlib.c
ref9cc56 rfc2cd7d6 10 10 // Created On : Thu Jan 28 17:10:29 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 23 14:11:29201713 // Update Count : 17 012 // Last Modified On : Fri Feb 24 21:08:11 2017 13 // Update Count : 171 14 14 // 15 15 … … 240 240 //--------------------------------------- 241 241 242 char abs(char v ) { return abs( (int)v ); }243 long int abs( long int v ) { return labs( v ); }244 long long int abs( long long int v ) { return llabs( v ); }242 unsigned char abs( signed char v ) { return abs( (int)v ); } 243 unsigned long int abs( long int v ) { return labs( v ); } 244 unsigned long long int abs( long long int v ) { return llabs( v ); } 245 245 float abs( float x ) { return fabsf( x ); } 246 246 double abs( double x ) { return fabs( x ); }
Note: See TracChangeset
for help on using the changeset viewer.