diff options
author | Stan Seibert <stan@mtrr.org> | 2011-09-19 14:36:13 -0400 |
---|---|---|
committer | Stan Seibert <stan@mtrr.org> | 2011-09-19 14:36:13 -0400 |
commit | a21b05e4727403e2e061234289af9e60e6022e5a (patch) | |
tree | 7a7d4c5809c370f3e542cfc8cb0bec7c2e4f5cdc /src/tools.cu | |
parent | cfecff941fc619eb7269128afc62d9c11ae78aff (diff) | |
parent | a38c56ff1e268298568077af7f03c8ac64c6fb82 (diff) | |
download | chroma-a21b05e4727403e2e061234289af9e60e6022e5a.tar.gz chroma-a21b05e4727403e2e061234289af9e60e6022e5a.tar.bz2 chroma-a21b05e4727403e2e061234289af9e60e6022e5a.zip |
merge relayout branch
Diffstat (limited to 'src/tools.cu')
-rw-r--r-- | src/tools.cu | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/tools.cu b/src/tools.cu deleted file mode 100644 index 80d06ec..0000000 --- a/src/tools.cu +++ /dev/null @@ -1,21 +0,0 @@ -//--*-c-*- - -extern "C" -{ - -__global__ void -interleave(int nthreads, unsigned long long *x, unsigned long long *y, - unsigned long long *z, int bits, unsigned long long *dest) -{ - int id = blockIdx.x*blockDim.x + threadIdx.x; - - if (id >= nthreads) - return; - - for (int i=0; i < bits; i++) - dest[id] |= (x[id] & 1 << i) << (2*i) | - (y[id] & 1 << i) << (2*i+1) | - (z[id] & 1 << i) << (2*i+2); -} - -} // extern "C" |