summaryrefslogtreecommitdiff
path: root/benchmarks/CUDA/MUM/morton.c
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-10-01 08:55:28 -0800
committerTor Aamodt <[email protected]>2010-10-01 08:55:28 -0800
commit11b308e7363e937966b035b4891db32b4eece3bf (patch)
tree50ca4c9ad6f163ac4acb2bf505e64dfebed66947 /benchmarks/CUDA/MUM/morton.c
parentbb820c116764d7a1b8e071137d32b74e7f34dd2f (diff)
integrating recent changes from fermi-test into fermi
(i'll use "fermi" for more disruptive changes to the pipeline model such as updating the MSHRs and getting rid of the warp tracker, ripping out DWF, etc...) [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7805]
Diffstat (limited to 'benchmarks/CUDA/MUM/morton.c')
-rw-r--r--benchmarks/CUDA/MUM/morton.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/benchmarks/CUDA/MUM/morton.c b/benchmarks/CUDA/MUM/morton.c
deleted file mode 100644
index 13599c6..0000000
--- a/benchmarks/CUDA/MUM/morton.c
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <stdio.h>
-
-void morton(int i, int *x, int *y)
-{
- *x = 0;
- *y = 0;
-
- int b;
- for (b = 0; b < 16; b++)
- {
- *x |= (i & (1 << (b*2))) >> b;
- *y |= (i & (1 << (b*2+1))) >> (b+1);
- }
-}
-
-int main(int argc, char ** argv)
-{
- int i;
- for (i = 0; i < 100; i++)
- {
- int x;
- int y;
-
- morton(i,&x,&y);
-
- printf("%d: %d %d\n", i, x, y);
- }
-
- return 0;
-}