Changeset 6acd020 for libcfa/prelude


Ignore:
Timestamp:
Jul 20, 2021, 9:06:24 PM (5 years ago)
Author:
m3zulfiq <m3zulfiq@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
Children:
d2260ad
Parents:
3d7d407 (diff), 86fc350 (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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/prelude/builtins.c

    r3d7d407 r6acd020  
    1010// Created On       : Fri Jul 21 16:21:03 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Apr 13 17:26:32 2021
    13 // Update Count     : 117
     12// Last Modified On : Tue Jul 20 17:31:40 2021
     13// Update Count     : 128
    1414//
    1515
     
    7878
    7979static inline {
    80         forall( DT & | { DT & ?+=?( DT &, one_t ); } )
    81         DT & ++?( DT & x ) { return x += 1; }
     80        forall( T | { T ?+=?( T &, one_t ); } )
     81        T ++?( T & x ) { return x += 1; }
    8282
    83         forall( DT & | sized(DT) | { void ?{}( DT &, DT ); void ^?{}( DT & ); DT & ?+=?( DT &, one_t ); } )
    84         DT & ?++( DT & x ) { DT tmp = x; x += 1; return tmp; }
     83        forall( T | { T ?+=?( T &, one_t ); } )
     84        T ?++( T & x ) { T tmp = x; x += 1; return tmp; }
    8585
    86         forall( DT & | { DT & ?-=?( DT &, one_t ); } )
    87         DT & --?( DT & x ) { return x -= 1; }
     86        forall( T | { T ?-=?( T &, one_t ); } )
     87        T --?( T & x ) { return x -= 1; }
    8888
    89         forall( DT & | sized(DT) | { void ?{}( DT &, DT ); void ^?{}( DT & ); DT & ?-=?( DT &, one_t ); } )
    90         DT & ?--( DT & x ) { DT tmp = x; x -= 1; return tmp; }
     89        forall( T | { T ?-=?( T &, one_t ); } )
     90        T ?--( T & x ) { T tmp = x; x -= 1; return tmp; }
    9191
    92         forall( DT & | { int ?!=?( const DT &, zero_t ); } )
    93         int !?( const DT & x ) { return !( x != 0 ); }
     92        forall( T | { int ?!=?( T, zero_t ); } )
     93        int !?( T & x ) { return !( x != 0 ); }
    9494} // distribution
    9595
Note: See TracChangeset for help on using the changeset viewer.