I'm puzzled by an apparently inconsistencyin IPP's rounding off results: In the first example the real result is 2.5 and IPP rounds it off to 2. In the second example the real result is 93.5 and IPP rounds it off to 94. Why is the 0.5 result sometimes rounded up and sometimes down?
I'm using multiply by constant function with scaling 7 , in two cases: (I'm giving an example for a single pixel result)
IPP provides the same behavior as HW provides by default - and it's mentioned in ippsmanual - all IPP functions by default round FP result to the nearest-even in order to provide more uniform distribution of results. So called "accounting" rounding (when 0.5 is always rounded up) is not uniform as results are always slightly shifted up.