tomcombriat / FixMath

GNU Lesser General Public License v3.0
3 stars 0 forks source link

invFull() vs. invAccurate() #5

Closed tfry-git closed 7 months ago

tfry-git commented 8 months ago
          > If you don't deem it too late to change that, I'd suggest renaming as perhaps invFull()? 

Sounds like a good idea! I will try to change that (and add a real accurate) soon. Note that in all cases, if the value cannot be represented in the destination type well, you are done for… If find a bit fun that division are the only operations which lose precision in fixed point math! I think now is the time for these kind of things, I think I used one or two invAccurate in Mozzi (where speed is usually more important than precision) that can easily be changed into invFull

_Originally posted by @tomcombriat in https://github.com/tomcombriat/FixMath/pull/4#discussion_r1542110046_