reorganize multicore version runtime codes for easy support of new platforms
[IRC.git] / Robust / src / Runtime / ObjectHash.c
index 1a79be2c5ddaa58c179641c97a186d27f93b1dd2..77a9233bf92bac550af399fce02b0617768cb7e9 100755 (executable)
@@ -1,6 +1,6 @@
 #include "ObjectHash.h"
-#ifdef RAW
-#include <raw.h>
+#ifdef MULTICORE
+#include "runtime_arch.h"
 #else
 #include <stdio.h>
 #endif
@@ -24,8 +24,8 @@ struct ObjectHash * noargallocateObjectHash() {
 struct ObjectHash * allocateObjectHash(int size) {
   struct ObjectHash *thisvar;  //=(struct ObjectHash *)RUNMALLOC(sizeof(struct ObjectHash));
   if (size <= 0) {
-#ifdef RAW
-    raw_test_done(0xc001);
+#ifdef MULTICORE
+    BAMBOO_EXIT(0xc001);
 #else
     printf("Negative Hashtable size Exception\n");
     exit(-1);
@@ -166,7 +166,7 @@ int ObjectHashadd(struct ObjectHash * thisvar,int key, int data, int data2, int
   return 1;
 }
 
-#ifdef RAW
+#ifdef MULTICORE
 int ObjectHashadd_I(struct ObjectHash * thisvar,int key, int data, int data2, int data3, int data4) {
   /* Rehash code */
   unsigned int hashkey;