miklhh / WiseMansFixedPoint

Improved header only fixed point arithmetic library.
1 stars 0 forks source link

Adjust resulting division word length #4

Open miklhh opened 3 years ago

miklhh commented 3 years ago

Currently the division operator results in a fixed point number with word length equal to that of the left hand side (the numerator). This approach has a couple of problems associated with it:

Given the expression LHS<a,b> / RHS<c,d>, some suitable approaches would be: