| 59 | } |
| 60 | |
| 61 | static inline __device__ void state_read(uint *const state, |
| 62 | const uint *const gState) { |
| 63 | const uint *const g = gState + (blockIdx.x * N); |
| 64 | state[STATE_SIZE - N + threadIdx.x] = g[threadIdx.x]; |
| 65 | if (threadIdx.x < N - blockDim.x) { |
| 66 | state[STATE_SIZE - N + blockDim.x + threadIdx.x] = |
| 67 | g[blockDim.x + threadIdx.x]; |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | static inline __device__ void state_write(uint *const gState, |
| 72 | const uint *const state) { |
no outgoing calls
no test coverage detected