Changeset ee6dbae for libcfa/src
- Timestamp:
- Jul 11, 2019, 1:34:37 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 302d84c2, 7870799
- Parents:
- d6a8aef (diff), 1d760934 (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:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/bits/containers.hfa
rd6a8aef ree6dbae 9 9 // Author : Thierry Delisle 10 10 // Created On : Tue Oct 31 16:38:50 2017 11 // Last Modified By : --12 // Last Modified On : --13 // Update Count : 011 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jun 26 08:52:20 2019 13 // Update Count : 4 14 14 15 15 #pragma once … … 115 115 } 116 116 return top; 117 } 118 119 forall(dtype T | is_node(T)) 120 static inline int ?!=?( const __stack(T) & this, __attribute__((unused)) zero_t zero ) { 121 return this.top != 0; 117 122 } 118 123 #endif … … 186 191 187 192 forall(dtype T | is_node(T)) 188 static inline bool ?!=?(__queue(T) & this, __attribute__((unused)) zero_t zero ) {193 static inline int ?!=?( const __queue(T) & this, __attribute__((unused)) zero_t zero ) { 189 194 return this.head != 0; 190 195 } … … 268 273 269 274 forall(dtype T | sized(T)) 270 static inline bool ?!=?(__dllist(T) & this, __attribute__((unused)) zero_t zero ) {275 static inline int ?!=?( const __dllist(T) & this, __attribute__((unused)) zero_t zero ) { 271 276 return this.head != 0; 272 277 } -
libcfa/src/stdlib.cfa
rd6a8aef ree6dbae 10 10 // Created On : Thu Jan 28 17:10:29 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jul 12 08:03:59 201813 // Update Count : 4 5812 // Last Modified On : Mon Jun 24 17:34:44 2019 13 // Update Count : 462 14 14 // 15 15 … … 65 65 forall( dtype T | sized(T), ttype Params | { void ?{}( T &, Params ); } ) 66 66 T * anew( size_t dim, Params p ) { 67 T * arr = alloc( dim );67 T * arr = alloc( dim ); 68 68 for ( unsigned int i = 0; i < dim; i += 1 ) { 69 69 (arr[i]){ p }; // run constructor
Note:
See TracChangeset
for help on using the changeset viewer.