Changeset cf5af9c for src/Parser
- Timestamp:
- Jul 13, 2020, 10:00:17 PM (4 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:
- 2b22b5c4
- Parents:
- 61ce214
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cc
r61ce214 rcf5af9c 10 10 // Created On : Sat May 16 13:17:07 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Jul 12 11:55:44202013 // Update Count : 104 012 // Last Modified On : Mon Jul 13 21:12:02 2020 13 // Update Count : 1043 14 14 // 15 15 … … 186 186 // Cannot be just "0"/"1"; sscanf stops at the suffix, if any; value goes over the wall => always generate 187 187 188 #if __SIZEOF_POINTER__ == 4 // 32-bit mode188 #if ! defined(__SIZEOF_INT128__) 189 189 if ( type == 5 ) SemanticError( yylloc, "int128 constant is not supported on this target " + str ); 190 #endif // 32-bit mode190 #endif // ! __SIZEOF_INT128__ 191 191 192 192 if ( str[0] == '0' ) { // radix character ? … … 219 219 if ( type < 5 ) { // not L128 ? 220 220 sscanf( (char *)str.c_str(), "%llo", &v ); 221 #if __SIZEOF_POINTER__ == 8 // 64-bit mode221 #if defined(__SIZEOF_INT128__) 222 222 } else { // octal int128 constant 223 223 unsigned int len = str.length(); … … 245 245 str = buf; 246 246 } // if 247 #endif // 64-bit mode247 #endif // __SIZEOF_INT128__ 248 248 } // if 249 249 //printf( "%#llo %llu\n", v, v ); … … 252 252 if ( type < 5 ) { // not L128 ? 253 253 sscanf( (char *)str.c_str(), "%llu", &v ); 254 #if __SIZEOF_POINTER__ == 8 // 64-bit mode254 #if defined(__SIZEOF_INT128__) 255 255 } else { // decimal int128 constant 256 256 #define P10_UINT64 10'000'000'000'000'000'000ULL // 19 zeroes … … 280 280 str = buf; 281 281 } // if 282 #endif // 64-bit mode282 #endif // __SIZEOF_INT128__ 283 283 } // if 284 284 //printf( "%llu\n", v );
Note: See TracChangeset
for help on using the changeset viewer.