Bug in multiply was fixed (by Vlad Vinogradov)
This commit is contained in:
parent
29b9720aab
commit
485e71bcc2
@ -613,10 +613,10 @@ namespace cv { namespace gpu { namespace device
|
|||||||
{
|
{
|
||||||
uint res = 0;
|
uint res = 0;
|
||||||
|
|
||||||
res |= 0xffu & (saturate_cast<uchar>((0xffu & (a )) * b) );
|
res |= (saturate_cast<uchar>((0xffu & (a )) * b) );
|
||||||
res |= 0xffu & (saturate_cast<uchar>((0xffu & (a >> 8)) * b) << 8);
|
res |= (saturate_cast<uchar>((0xffu & (a >> 8)) * b) << 8);
|
||||||
res |= 0xffu & (saturate_cast<uchar>((0xffu & (a >> 16)) * b) << 16);
|
res |= (saturate_cast<uchar>((0xffu & (a >> 16)) * b) << 16);
|
||||||
res |= 0xffu & (saturate_cast<uchar>((0xffu & (a >> 24)) * b) << 24);
|
res |= (saturate_cast<uchar>((0xffu & (a >> 24)) * b) << 24);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user