We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I want to multiply two fixed point numbers. After the multiplication I have to shift the result so that the binary point is correct. Example:
int a; int b; int c; c = (a * b) >> 10
I don't know the '166, but I suspect this is a 'C' issue rather than a processor issue. You could look up the promotion rules in K&R, or you could just try experimenting with casting a, b, and/or the product to long.