Lines Matching refs:bestDistance2
61 __device__ void findBestMatch(float& bestDistance1, float& bestDistance2, in findBestMatch() argument
76 d2 = shfl_down(bestDistance2, i, BLOCK_SIZE); in findBestMatch()
82 if (d1 < bestDistance2) in findBestMatch()
84 bestDistance2 = d1; in findBestMatch()
90 bestDistance2 = bestDistance1; in findBestMatch()
96 if (d2 < bestDistance2) in findBestMatch()
98 bestDistance2 = d2; in findBestMatch()
142 s_distance[threadIdx.x] = bestDistance2; in findBestMatch()
163 bestDistance2 = myBestDistance2; in findBestMatch()
171 __device__ void findBestMatch(float& bestDistance1, float& bestDistance2, in findBestMatch() argument
189 d2 = shfl_down(bestDistance2, i, BLOCK_SIZE); in findBestMatch()
197 if (d1 < bestDistance2) in findBestMatch()
199 bestDistance2 = d1; in findBestMatch()
206 bestDistance2 = bestDistance1; in findBestMatch()
214 if (d2 < bestDistance2) in findBestMatch()
216 bestDistance2 = d2; in findBestMatch()
268 s_distance[threadIdx.x] = bestDistance2; in findBestMatch()
291 bestDistance2 = myBestDistance2; in findBestMatch()
318 float& bestDistance1, float& bestDistance2, in loopUnrolledCached() argument
359 bestDistance2 = bestDistance1; in loopUnrolledCached()
366 else if (distVal < bestDistance2) in loopUnrolledCached()
369 bestDistance2 = distVal; in loopUnrolledCached()
493 float& bestDistance1, float& bestDistance2, in loopUnrolled() argument
538 bestDistance2 = bestDistance1; in loopUnrolled()
545 else if (distVal < bestDistance2) in loopUnrolled()
548 bestDistance2 = distVal; in loopUnrolled()
668 float& bestDistance1, float& bestDistance2, in loop() argument
712 bestDistance2 = bestDistance1; in loop()
719 else if (distVal < bestDistance2) in loop()
722 bestDistance2 = distVal; in loop()