Division algorithm: Difference between revisions

Content deleted Content added
Line 254:
X := 48/17 − 32/17 × D' ''// precompute constants with same precision as D''
{{nowrap|'''repeat''' <math>\left \lceil \log_2 \frac{P + 1}{\log_2 17} \right \rceil \,</math> '''times'''}} ''// can be precomputed based on fixed P''
X := X + X × (1 - D' × X) / 2
'''end'''
'''return''' N' × X