Changeset bf26fa5 for src/libcfa
- Timestamp:
- Feb 24, 2017, 9:42:25 PM (7 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:
- 75c566a, fc2cd7d6
- Parents:
- 1630f18
- Location:
- src/libcfa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/stdlib
r1630f18 rbf26fa5 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
r1630f18 rbf26fa5 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.