Changeset 463cb33 for libcfa/src
- Timestamp:
- Jul 16, 2020, 2:59:56 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- c82af9f
- Parents:
- 519f11c (diff), 3f06c05 (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:
- libcfa/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/iostream.cfa
r519f11c r463cb33 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jul 8 22:14:20202013 // Update Count : 1 06912 // Last Modified On : Thu Jul 16 07:43:31 2020 13 // Update Count : 1102 14 14 // 15 15 … … 970 970 } // ?|? 971 971 972 #if defined( __SIZEOF_INT128__ ) 973 istype & ?|?( istype & is, int128 & i128 ) { 974 return (istype &)(is | (unsigned int128 &)i128); 975 } // ?|? 976 977 istype & ?|?( istype & is, unsigned int128 & ui128 ) { 978 char s[40]; 979 bool sign = false; 980 981 if ( fmt( is, " %[-]", s ) == 1 ) sign = true; // skip whitespace, negative sign ? 982 // If the input is too large, the value returned is undefined. If there is no input, no value is returned 983 if ( fmt( is, "%39[0-9]%*[0-9]", s ) == 1 ) { // take first 39 characters, ignore remaining 984 ui128 = 0; 985 for ( unsigned int i = 0; s[i] != '\0'; i += 1 ) { 986 ui128 = ui128 * 10 + s[i] - '0'; 987 } // for 988 if ( sign ) ui128 = -ui128; 989 } else if ( sign ) ungetc( is, '-' ); // return minus when no digits 990 return is; 991 } // ?|? 992 #endif // __SIZEOF_INT128__ 972 993 973 994 istype & ?|?( istype & is, float & f ) { -
libcfa/src/iostream.hfa
r519f11c r463cb33 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jul 13 22:11:41202013 // Update Count : 34 412 // Last Modified On : Thu Jul 16 07:43:32 2020 13 // Update Count : 348 14 14 // 15 15 … … 315 315 istype & ?|?( istype &, unsigned int & ); 316 316 istype & ?|?( istype &, long int & ); 317 istype & ?|?( istype &, unsigned long int & ); 317 318 istype & ?|?( istype &, long long int & ); 318 istype & ?|?( istype &, unsigned long int & );319 319 istype & ?|?( istype &, unsigned long long int & ); 320 #if defined( __SIZEOF_INT128__ ) 321 istype & ?|?( istype &, int128 & ); 322 istype & ?|?( istype &, unsigned int128 & ); 323 #endif // __SIZEOF_INT128__ 320 324 321 325 istype & ?|?( istype &, float & );
Note:
See TracChangeset
for help on using the changeset viewer.