Bingo - I see it!
-127 integer divide by two is -63
-127 shift right once (sign extended) is -64
It's going out the top of the array...
So the next question is -
Is this a bug in the routine, or is "-64" an illegal/out-of-range value for a vector?
Perhaps some asm routine not rounding / range limiting correctly?
Last edited by plugh; 25th April 2007 at 23:25.
|