Changeset e78782b for libcfa/src


Ignore:
Timestamp:
Jan 6, 2023, 1:59:06 PM (2 years ago)
Author:
caparsons <caparson@…>
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.
Message:

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

Location:
libcfa/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/heap.cfa

    r243d998 re78782b  
    1010// Created On       : Tue Dec 19 21:58:35 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Dec 28 12:37:38 2022
    13 // Update Count     : 1597
     12// Last Modified On : Fri Dec 30 08:37:37 2022
     13// Update Count     : 1605
    1414//
    1515
     
    805805
    806806        ptrdiff_t rem = heapRemaining - size;
    807         if ( unlikely( rem < 0 ) ) {
     807        if ( unlikely( rem < 0 ) ) {                                            // negative ?
    808808                // If the size requested is bigger than the current remaining storage, increase the size of the heap.
    809809
     
    841841        ptrdiff_t rem = heapReserve - size;
    842842
    843         if ( unlikely( rem < 0 ) ) {                                            // negative
     843        if ( unlikely( rem < 0 ) ) {                                            // negative ?
    844844                // If the size requested is bigger than the current remaining reserve, use the current reserve to populate
    845845                // smaller freeLists, and increase the reserve.
     
    847847                rem = heapReserve;                                                              // positive
    848848
    849                 if ( rem >= bucketSizes[0] ) {                                  // minimal size ? otherwise ignore
     849                if ( (unsigned int)rem >= bucketSizes[0] ) {    // minimal size ? otherwise ignore
    850850                        size_t bucket;
    851851                        #ifdef FASTLOOKUP
     
    856856                        Heap.FreeHeader * freeHead = &(freeLists[bucket]);
    857857
    858                         // The remaining storage many not be bucket size, whereas all other allocations are. Round down to previous
     858                        // The remaining storage may not be bucket size, whereas all other allocations are. Round down to previous
    859859                        // bucket size in this case.
    860860                        if ( unlikely( freeHead->blockSize > (size_t)rem ) ) freeHead -= 1;
  • libcfa/src/interpose.cfa

    r243d998 re78782b  
    1010// Created On       : Wed Mar 29 16:10:31 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Mar 13 17:35:37 2020
    13 // Update Count     : 178
     12// Last Modified On : Thu Jan  5 22:23:57 2023
     13// Update Count     : 180
    1414//
    1515
     
    1818#include <string.h>                                                                             // strlen
    1919#include <unistd.h>                                                                             // _exit, getpid
    20 #define __USE_GNU
    2120#include <signal.h>
    22 #undef __USE_GNU
    2321extern "C" {
    2422#include <dlfcn.h>                                                                              // dlopen, dlsym
  • libcfa/src/limits.cfa

    r243d998 re78782b  
    1010// Created On       : Wed Apr  6 18:06:52 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Mar  1 16:22:51 2018
    13 // Update Count     : 74
     12// Last Modified On : Thu Jan  5 22:27:40 2023
     13// Update Count     : 84
    1414//
    1515
     16#define _GNU_SOURCE                                                                             // access long double M_*l in math.h
    1617#include <limits.h>
    1718#include <float.h>
    18 #define __USE_GNU                                                                               // get M_* constants
    1919#include <math.h>
    2020#include <complex.h>
Note: See TracChangeset for help on using the changeset viewer.