summaryrefslogtreecommitdiffstats
path: root/src/misc/hash
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-01-21 04:30:10 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2012-01-21 04:30:10 -0800
commit8014f25f6db719fa62336f997963532a14c568f6 (patch)
treec691ee91a3a2d452a2bd24ac89a8c717beaa7af7 /src/misc/hash
parentc44cc5de9429e6b4f1c05045fcf43c9cb96437b5 (diff)
downloadabc-8014f25f6db719fa62336f997963532a14c568f6.tar.gz
abc-8014f25f6db719fa62336f997963532a14c568f6.tar.bz2
abc-8014f25f6db719fa62336f997963532a14c568f6.zip
Major restructuring of the code.
Diffstat (limited to 'src/misc/hash')
-rw-r--r--src/misc/hash/hash.h8
-rw-r--r--src/misc/hash/hashFlt.h6
-rw-r--r--src/misc/hash/hashGen.h6
-rw-r--r--src/misc/hash/hashInt.h6
-rw-r--r--src/misc/hash/hashPtr.h6
5 files changed, 16 insertions, 16 deletions
diff --git a/src/misc/hash/hash.h b/src/misc/hash/hash.h
index 9b5b25d6..6e6c637c 100644
--- a/src/misc/hash/hash.h
+++ b/src/misc/hash/hash.h
@@ -18,8 +18,8 @@
***********************************************************************/
-#ifndef __HASH_H__
-#define __HASH_H__
+#ifndef ABC__misc__hash__hash_h
+#define ABC__misc__hash__hash_h
#ifdef _WIN32
@@ -29,7 +29,7 @@
/// INCLUDES ///
////////////////////////////////////////////////////////////////////////
-#include "abc_global.h"
+#include "src/misc/util/abc_global.h"
#include "hashInt.h"
#include "hashFlt.h"
@@ -55,7 +55,7 @@ ABC_NAMESPACE_HEADER_START
////////////////////////////////////////////////////////////////////////
int Hash_DefaultHashFunc(int key, int nBins) {
- return ABC_ABS( ( (key+11)*(key)*7+3 ) % nBins );
+ return Abc_AbsInt( ( (key+11)*(key)*7+3 ) % nBins );
}
////////////////////////////////////////////////////////////////////////
diff --git a/src/misc/hash/hashFlt.h b/src/misc/hash/hashFlt.h
index 74e8503d..c5776b46 100644
--- a/src/misc/hash/hashFlt.h
+++ b/src/misc/hash/hashFlt.h
@@ -18,8 +18,8 @@
***********************************************************************/
-#ifndef __HASH_FLT_H__
-#define __HASH_FLT_H__
+#ifndef ABC__misc__hash__hashFlt_h
+#define ABC__misc__hash__hashFlt_h
////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@
////////////////////////////////////////////////////////////////////////
#include <stdio.h>
-#include "extra.h"
+#include "src/misc/extra/extra.h"
ABC_NAMESPACE_HEADER_START
diff --git a/src/misc/hash/hashGen.h b/src/misc/hash/hashGen.h
index e26a3c84..eaeef6fd 100644
--- a/src/misc/hash/hashGen.h
+++ b/src/misc/hash/hashGen.h
@@ -18,8 +18,8 @@
***********************************************************************/
-#ifndef __HASH_GEN_H__
-#define __HASH_GEN_H__
+#ifndef ABC__misc__hash__hashGen_h
+#define ABC__misc__hash__hashGen_h
////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@
////////////////////////////////////////////////////////////////////////
#include <stdio.h>
-#include "extra.h"
+#include "misc/extra/extra.h"
ABC_NAMESPACE_HEADER_START
diff --git a/src/misc/hash/hashInt.h b/src/misc/hash/hashInt.h
index 23947946..81a338fc 100644
--- a/src/misc/hash/hashInt.h
+++ b/src/misc/hash/hashInt.h
@@ -18,8 +18,8 @@
***********************************************************************/
-#ifndef __HASH_INT_H__
-#define __HASH_INT_H__
+#ifndef ABC__misc__hash__hashInt_h
+#define ABC__misc__hash__hashInt_h
////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@
////////////////////////////////////////////////////////////////////////
#include <stdio.h>
-#include "extra.h"
+#include "src/misc/extra/extra.h"
ABC_NAMESPACE_HEADER_START
diff --git a/src/misc/hash/hashPtr.h b/src/misc/hash/hashPtr.h
index a10fb548..72e2f394 100644
--- a/src/misc/hash/hashPtr.h
+++ b/src/misc/hash/hashPtr.h
@@ -18,8 +18,8 @@
***********************************************************************/
-#ifndef __HASH_PTR_H__
-#define __HASH_PTR_H__
+#ifndef ABC__misc__hash__hashPtr_h
+#define ABC__misc__hash__hashPtr_h
////////////////////////////////////////////////////////////////////////
@@ -27,7 +27,7 @@
////////////////////////////////////////////////////////////////////////
#include <stdio.h>
-#include "extra.h"
+#include "src/misc/extra/extra.h"
ABC_NAMESPACE_HEADER_START