Changes in libcfa/src/heap.cfa [6c5d92f:d134b15]
- File:
-
- 1 edited
-
libcfa/src/heap.cfa (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/heap.cfa
r6c5d92f rd134b15 10 10 // Created On : Tue Dec 19 21:58:35 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Apr 20 21:20:48202113 // Update Count : 103 312 // Last Modified On : Sun Mar 14 10:39:24 2021 13 // Update Count : 1032 14 14 // 15 15 … … 1128 1128 1129 1129 // Set the alignment for an the allocation and return previous alignment or 0 if no alignment. 1130 size_t malloc_alignment_set$( void * addr, size_t alignment ) {1130 size_t $malloc_alignment_set( void * addr, size_t alignment ) { 1131 1131 if ( unlikely( addr == 0p ) ) return libAlign(); // minimum alignment 1132 1132 size_t ret; … … 1139 1139 } // if 1140 1140 return ret; 1141 } // malloc_alignment_set$1141 } // $malloc_alignment_set 1142 1142 1143 1143 … … 1153 1153 1154 1154 // Set allocation is zero filled and return previous zero filled. 1155 bool malloc_zero_fill_set$( void * addr ) {1155 bool $malloc_zero_fill_set( void * addr ) { 1156 1156 if ( unlikely( addr == 0p ) ) return false; // null allocation is not zero fill 1157 1157 HeapManager.Storage.Header * header = headerAddr( addr ); … … 1162 1162 header->kind.real.blockSize |= 2; // mark as zero filled 1163 1163 return ret; 1164 } // malloc_zero_fill_set$1164 } // $malloc_zero_fill_set 1165 1165 1166 1166 … … 1176 1176 1177 1177 // Set allocation size and return previous size. 1178 size_t malloc_size_set$( void * addr, size_t size ) {1178 size_t $malloc_size_set( void * addr, size_t size ) { 1179 1179 if ( unlikely( addr == 0p ) ) return 0; // null allocation has 0 size 1180 1180 HeapManager.Storage.Header * header = headerAddr( addr ); … … 1185 1185 header->kind.real.size = size; 1186 1186 return ret; 1187 } // malloc_size_set$1187 } // $malloc_size_set 1188 1188 1189 1189
Note:
See TracChangeset
for help on using the changeset viewer.