top | item 41300937

(no title)

fizzynut | 1 year ago

Is it possible to get rid of all the macros TO_FIXED, FROM_FIXED, mult, etc and replace them with a class with the correct constructors / operator overloads?

Then your code doesn't ever need to be aware of the special fixed point math and horrible syntax everywhere and everything just works?

discuss

order

msk-lywenn|1 year ago

Yes it can. I’ve seen it done properly only once though. You still have to pay attention to avoid overflows