If the code breaks down to "x div 10" (with 10 as an
explicit constant and x being a 64-bit integer), then yes it will. If
the divisor is a variable though, then it won't. However, the "magic
div" algorithm only works for numerators up to a given bit size; if the
number exceed
Hi,
in my big decimal unit, I need to divide by 10 all the time,
e.g.
https://github.com/benibela/bigdecimalmath/blob/master/bigdecimalmath.pas#L1324-L1325
would the magic div help there much?
Bye,
Benito
On 09.11.21 22:12, J. Gareth Moreton via fpc-devel wrote:
This one for Marģer