]> AND Private Git Repository - book_gpu.git/blob - BookGPU/Chapters/chapter13/ex3.cu
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
ch17
[book_gpu.git] / BookGPU / Chapters / chapter13 / ex3.cu
1 texture<int2,1> v;
2
3 static __inline__
4 __device__ double fetch_double(texture<int2,1> v, int i)
5 {
6         int2 w = tex1Dfetch(v, i);
7         return __hiloint2double(w.y, w.x);
8 }