From 3e12066ded12ad7867826696b24599421deaa21f Mon Sep 17 00:00:00 2001 From: Brandon Myers Date: Sun, 23 Nov 2014 17:45:33 -0600 Subject: [PATCH] remove deprecated stuff from clang base template --- raco/language/c_templates/base_query.cpp | 49 ------------------------ 1 file changed, 49 deletions(-) diff --git a/raco/language/c_templates/base_query.cpp b/raco/language/c_templates/base_query.cpp index ee70ef92..50ba8c20 100644 --- a/raco/language/c_templates/base_query.cpp +++ b/raco/language/c_templates/base_query.cpp @@ -44,55 +44,6 @@ typedef uint64_t uint64; // ------------------------------------------------------------------ -#define Subject 0 -#define Predicate 1 -#define Object 2 -#define Graph 3 - -#define XXX 330337405 -#define YYY 1342785348 -#define ZZZ 1395042699 - -#define buckets 100000 - -uint64_t emit_count=0; - -const uint64 mask = (1L << 53) - 1; -/* -// Insert a value into a hash table -void insert(uint64 **ht1, uint64 size1, uint64 offset) -{ - uint64 hash = (uint64(offset) & mask) %% size1; -#ifdef __MTA__ - while (1) { - if (!readff(ht1 + hash)) { - uint64 *p = readfe(ht1 + hash); // lock it - if (p) writeef(ht1 + hash, p); // unlock and try again - else break; - } - hash++; - if (hash == size1) - hash = 0; - } - writeef(ht1 + hash, relation2 + i); // unlock it -#else - while (ht1[hash]) { - hash++; - if (hash == size1) hash = 0; - } - ht1[hash] = relation2 + i; -#endif -} -*/ - - -inline bool equals(struct relationInfo *left, uint64 leftrow, uint64 leftattribute - , struct relationInfo *right, uint64 rightrow, uint64 rightattribute) { - /* Convenience function for evaluating equi-join conditions */ - uint64 leftval = left->relation[leftrow*left->fields + leftattribute]; - uint64 rightval = right->relation[rightrow*right->fields + rightattribute]; - return leftval == rightval; -} {{declarations}}