Skip to content

Commit

Permalink
remove deprecated stuff from clang base template
Browse files Browse the repository at this point in the history
  • Loading branch information
bmyerz committed Nov 23, 2014
1 parent e6324fc commit 3e12066
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions raco/language/c_templates/base_query.cpp
Expand Up @@ -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}}

Expand Down

0 comments on commit 3e12066

Please sign in to comment.