summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/hashing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpgpu-sim/hashing.h')
-rw-r--r--src/gpgpu-sim/hashing.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gpgpu-sim/hashing.h b/src/gpgpu-sim/hashing.h
new file mode 100644
index 0000000..867c949
--- /dev/null
+++ b/src/gpgpu-sim/hashing.h
@@ -0,0 +1,24 @@
+// author: Mahmoud Khairy, (Purdue Univ)
+
+#include <assert.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include "../option_parser.h"
+
+#ifndef HASHING_H
+#define HASHING_H
+
+#include "../abstract_hardware_model.h"
+#include "gpu-cache.h"
+
+unsigned ipoly_hash_function(new_addr_type higher_bits, unsigned index,
+ unsigned bank_set_num);
+
+unsigned bitwise_hash_function(new_addr_type higher_bits, unsigned index,
+ unsigned bank_set_num);
+
+unsigned PAE_hash_function(new_addr_type higher_bits, unsigned index,
+ unsigned bank_set_num);
+
+#endif