comparison vmalloc.c @ 55:3bac84e4e56e

Works with correct matrix mult Nov 4 -- switch animators macros, many updates Changed all queues back to VMSQ variants #defines correct, protected, work-stealing, with compiler switch in and out
author Me
date Thu, 04 Nov 2010 18:13:18 -0700
parents 42dd44df1bb0
children 7b799a46cc87
comparison
equal deleted inserted replaced
1:0d3829b76e44 2:af8d407abe7a
65 else 65 else
66 currElem = currElem->nextChunkInFreeList; 66 currElem = currElem->nextChunkInFreeList;
67 } 67 }
68 68
69 if( foundElem == NULL ) 69 if( foundElem == NULL )
70 { PRINT_ERROR("\nmalloc failed\n") 70 { ERROR("\nmalloc failed\n")
71 return NULL; //indicates malloc failed 71 return NULL; //indicates malloc failed
72 } 72 }
73 //Using a kludge to identify the element that is the top chunk in the 73 //Using a kludge to identify the element that is the top chunk in the
74 // heap -- saving top-of-heap addr in head's nextHigherInMem -- and 74 // heap -- saving top-of-heap addr in head's nextHigherInMem -- and
75 // save addr of start of heap in head's nextLowerInMem 75 // save addr of start of heap in head's nextLowerInMem