??? 08/05/07 07:57 Read: times |
#142780 - methodology and the raw reason Responding to: ???'s previous message |
When you encounter "mysterious problems" in C, the best way to do is to look at the generated asm (C is not omnipotent and has its quirks and inherent errors); especially if you say you are good in asm. In doubts, you can also step through the code in question in a simulator.
--- (10 * AxisAngle) * In this case, the internal variable (32-bit) into which the "(10 * AxisAngle + 460) * 22118400" part of the figure was calculated, overflew. Try yourself. JW |