# HG changeset patch # User michael # Date 1153084172 0 # Node ID 26d3704e12c04b015a1a29e7dcd7041666cd58d1 # Parent 5ee0e924432f23935867ae16f7961537a1170a40 use RSHIFT diff -r 5ee0e924432f -r 26d3704e12c0 vp3.c --- a/vp3.c Sun Jul 16 21:00:38 2006 +0000 +++ b/vp3.c Sun Jul 16 21:09:32 2006 +0000 @@ -1145,17 +1145,10 @@ motion_y[4] += motion_y[k]; } - if (motion_x[4] >= 0) - motion_x[4] = (motion_x[4] + 2) / 4; - else - motion_x[4] = (motion_x[4] - 2) / 4; - motion_x[5] = motion_x[4]; - - if (motion_y[4] >= 0) - motion_y[4] = (motion_y[4] + 2) / 4; - else - motion_y[4] = (motion_y[4] - 2) / 4; - motion_y[5] = motion_y[4]; + motion_x[5]= + motion_x[4]= RSHIFT(motion_x[4], 2); + motion_y[5]= + motion_y[4]= RSHIFT(motion_y[4], 2); /* vector maintenance; vector[3] is treated as the * last vector in this case */