Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/iostream.cfa

    rcadec25 r7d9bbef  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Jul 16 07:43:31 2020
    13 // Update Count     : 1102
     12// Last Modified On : Wed Jul  8 22:14:20 2020
     13// Update Count     : 1069
    1414//
    1515
     
    970970        } // ?|?
    971971
    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__
    993972
    994973        istype & ?|?( istype & is, float & f ) {
Note: See TracChangeset for help on using the changeset viewer.