You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Divisions are indeed slow on AVR because they do not have hardware division instructions. However, the existence of a division operation does not promote the variables in that operation to float. Int division just nets a result and remainder, the latter of which is ignored returning a result that is truncated.
As an example, the operation 3 / 2 does not internally utilize a float at any point; it instead internally has a result of 1 and a remainder of 1, and so would return 1 rather than 1.5.
The argument of non-using float is false.
When you look at the code, there're at least 3 divisions, which are very slow !
The text was updated successfully, but these errors were encountered: