Hi I got to implement (A*x + B*y)/(x+y). A and B can take value from 0 to 255. x and y are non-negative integer i.e. 0 and above. (x+y) can be max. of 8. For example if (x+y) is 7. and x is 2 (A*2 + B*5)/7 Is there any way to avoid division by scaling using left right shift or somethin...?? thanks,