Changeset e78782b for libcfa/src
- Timestamp:
- Jan 6, 2023, 1:59:06 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- c130165
- Parents:
- 243d998 (diff), a20be49 (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:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/heap.cfa
r243d998 re78782b 10 10 // Created On : Tue Dec 19 21:58:35 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Dec 28 12:37:38202213 // Update Count : 1 59712 // Last Modified On : Fri Dec 30 08:37:37 2022 13 // Update Count : 1605 14 14 // 15 15 … … 805 805 806 806 ptrdiff_t rem = heapRemaining - size; 807 if ( unlikely( rem < 0 ) ) { 807 if ( unlikely( rem < 0 ) ) { // negative ? 808 808 // If the size requested is bigger than the current remaining storage, increase the size of the heap. 809 809 … … 841 841 ptrdiff_t rem = heapReserve - size; 842 842 843 if ( unlikely( rem < 0 ) ) { // negative 843 if ( unlikely( rem < 0 ) ) { // negative ? 844 844 // If the size requested is bigger than the current remaining reserve, use the current reserve to populate 845 845 // smaller freeLists, and increase the reserve. … … 847 847 rem = heapReserve; // positive 848 848 849 if ( rem >= bucketSizes[0] ) {// minimal size ? otherwise ignore849 if ( (unsigned int)rem >= bucketSizes[0] ) { // minimal size ? otherwise ignore 850 850 size_t bucket; 851 851 #ifdef FASTLOOKUP … … 856 856 Heap.FreeHeader * freeHead = &(freeLists[bucket]); 857 857 858 // The remaining storage ma ny not be bucket size, whereas all other allocations are. Round down to previous858 // The remaining storage may not be bucket size, whereas all other allocations are. Round down to previous 859 859 // bucket size in this case. 860 860 if ( unlikely( freeHead->blockSize > (size_t)rem ) ) freeHead -= 1; -
libcfa/src/interpose.cfa
r243d998 re78782b 10 10 // Created On : Wed Mar 29 16:10:31 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 13 17:35:37 202013 // Update Count : 1 7812 // Last Modified On : Thu Jan 5 22:23:57 2023 13 // Update Count : 180 14 14 // 15 15 … … 18 18 #include <string.h> // strlen 19 19 #include <unistd.h> // _exit, getpid 20 #define __USE_GNU21 20 #include <signal.h> 22 #undef __USE_GNU23 21 extern "C" { 24 22 #include <dlfcn.h> // dlopen, dlsym -
libcfa/src/limits.cfa
r243d998 re78782b 10 10 // Created On : Wed Apr 6 18:06:52 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Mar 1 16:22:51 201813 // Update Count : 7412 // Last Modified On : Thu Jan 5 22:27:40 2023 13 // Update Count : 84 14 14 // 15 15 16 #define _GNU_SOURCE // access long double M_*l in math.h 16 17 #include <limits.h> 17 18 #include <float.h> 18 #define __USE_GNU // get M_* constants19 19 #include <math.h> 20 20 #include <complex.h>
Note: See TracChangeset
for help on using the changeset viewer.