d230aef4f854ea10818b47b2bc41c8115a2e6f63
1 #ifndef INDICES_TOOLS_GPU_H_
2 #define INDICES_TOOLS_GPU_H_
4 #include "both_define.h"
6 /*----------------------------------------------------------------------*\
8 \*---------------------------------------------------------------------*/
10 /*--------------------------------------*\
12 \*-------------------------------------*/
19 /*--------------------------------------*\
21 \*--------------------------------------*/
25 /*--------------------------------------*\
27 \*--------------------------------------*/
32 * s[0,W*H[ --> i[0,H[ j[0,W[
37 static void toIJ( int s
, int w
, int* ptrI
, int* ptrJ
)
40 *ptrJ
= s
- w
* (*ptrI
);
44 * i[0,H[ j[0,W[ --> s[0,W*H[
49 static int toS(int w
, int i
, int j
)
54 /*-------------------------------------*\
56 \*-------------------------------------*/
65 /*----------------------------------------------------------------------*\
67 \*---------------------------------------------------------------------*/