View Single Post
Old 25th April 2007, 23:10   #30  |  Link
plugh
A hollow voice says
 
Join Date: Sep 2006
Posts: 269
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.
plugh is offline   Reply With Quote