#include "SimpleHash.h"
#ifdef MULTICORE
+#include "methodheaders.h"
+#include "multicore_arch.h"
#include "runtime_arch.h"
#else
#include <stdio.h>
}
struct RuntimeHash * allocateRuntimeHash(int size) {
- struct RuntimeHash *thisvar; //=(struct RuntimeHash *)RUNMALLOC(sizeof(struct RuntimeHash));
+ struct RuntimeHash *thisvar;
if (size <= 0) {
#ifdef MULTICORE
- BAMBOO_EXIT(0xf101);
+ BAMBOO_EXIT();
#else
printf("Negative Hashtable size Exception\n");
exit(-1);
#ifdef MULTICORE
struct RuntimeHash * allocateRuntimeHash_I(int size) {
- struct RuntimeHash *thisvar; //=(struct RuntimeHash *)RUNMALLOC(sizeof(struct RuntimeHash));
+ struct RuntimeHash *thisvar;
if (size <= 0) {
#ifdef MULTICORE
- BAMBOO_EXIT(0xf101);
+ BAMBOO_EXIT();
#else
printf("Negative Hashtable size Exception\n");
exit(-1);
}
}
thisvar->size=newsize;
- RUNFREE(thisvar->bucket);
+ RUNFREE_I(thisvar->bucket);
thisvar->bucket=newbucket;
}