Forum Discussion
Altera_Forum
Honored Contributor
16 years agoC2H fixed point mpy
I had an array of fixed point numbers, log values actually. 10 bit integer 22 bit fraction. Needed the sum of squares to calculate standard deviation. In regular C this works okay ...
lo...
Altera_Forum
Honored Contributor
16 years agoI tried your modification and it worked okay, so I retested the original version and that worked also. As noted in my edit above, some other problem generated a false complaint about the long long cast.
Does the compiler optimize away the unnecessary multipliers or does it genereate a 64 x 64 -> 128 multiplier?