• amatyuko's avatar
    Fix for SSE2 intrinsics problem in the part of saturation arithmetic processing… · 3ea2586a
    amatyuko authored
    Fix for SSE2 intrinsics problem in the part of saturation arithmetic processing during 32s->16u packed conversion -
    for some big negative values less than -INT_MAX+32767 the sign of the numbers is lost due to overflow that leads to
    incorrect saturation to MAX value, instead of zero.
    The issue is not reproduced with CV_ENABLED_INTRINSICS=OFF
    3ea2586a
convert.cpp 43.2 KB