mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
Optimize runLBPClassifierStumpSimple by built-in mad24.
Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
This commit is contained in:
parent
4949f70860
commit
df697f6520
@ -397,8 +397,8 @@ __kernel void runLBPClassifierStumpSimple(
|
||||
|
||||
for( tileIdx = groupIdx; tileIdx < totalTiles; tileIdx += ngroups )
|
||||
{
|
||||
int iy = ((tileIdx / ntiles.x)*local_size_y + ly)*ystep;
|
||||
int ix = ((tileIdx % ntiles.x)*local_size_x + lx)*ystep;
|
||||
int iy = mad24((tileIdx / ntiles.x), local_size_y, ly) * ystep;
|
||||
int ix = mad24((tileIdx % ntiles.x), local_size_x, lx) * ystep;
|
||||
|
||||
if( ix < worksize.x && iy < worksize.y )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user