Changeset cf5af9c for libcfa


Ignore:
Timestamp:
Jul 13, 2020, 10:00:17 PM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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
Message:

change from SIZEOF_POINTER to SIZEOF_INT128 to determine if int128 exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/prelude/builtins.c

    r61ce214 rcf5af9c  
    1010// Created On       : Fri Jul 21 16:21:03 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Jul 12 10:40:57 2020
    13 // Update Count     : 107
     12// Last Modified On : Mon Jul 13 21:10:02 2020
     13// Update Count     : 109
    1414//
    1515
     
    9595static inline forall( dtype DT ) DT * intptr( uintptr_t addr ) { return (DT *)addr; }
    9696
    97 #if __SIZEOF_POINTER__ == 8                                                             // 64-bit mode
     97#if defined(__SIZEOF_INT128__)
    9898// constructor for 128-bit numbers (all constants are unsigned as +/- are operators)
    9999static inline void ?{}( unsigned int128 & this, unsigned long int h, unsigned long int l ) {
    100100        this = (unsigned int128)h << 64 | (unsigned int128)l;
    101101} // ?{}
    102 #endif // 64-bit mode
     102#endif // __SIZEOF_INT128__
    103103
    104104// exponentiation operator implementation
Note: See TracChangeset for help on using the changeset viewer.