Skip to content

Instantly share code, notes, and snippets.

@H4niz
Created April 9, 2019 22:04
Show Gist options
  • Save H4niz/f6dec668037d9eb3ab548f31ce124e3c to your computer and use it in GitHub Desktop.
Save H4niz/f6dec668037d9eb3ab548f31ce124e3c to your computer and use it in GitHub Desktop.
/*
If not the first time through, we require old_size to be
at least MINSIZE and to have prev_inuse set.
*/
assert ((old_top == initial_top (av) && old_size == 0) ||
((unsigned long) (old_size) >= MINSIZE &&
prev_inuse (old_top) &&
((unsigned long) old_end & (pagesize - 1)) == 0));
/* Precondition: not enough current space to satisfy nb request */
assert ((unsigned long) (old_size) < (unsigned long) (nb + MINSIZE));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment