Re: 2-adic Svoboda

2021-05-03 Thread Paul Zimmermann
Dear Torbjörn, > Without invariance from e.g modexp, I don't believe one can beat > sbpi1_bdiv_r (or the older redc_1). Newer implementation of > sbpi1_bdiv_r make use of the observation that the next quotient can be > computed early, actually almost a whole innerloop invocation early, > w

Re: 2-adic Svoboda

2021-05-03 Thread Torbjörn Granlund
Paul Zimmermann writes: I tried to implement Montgomery-Svoboda at the C level, but did not manage to beat the mpn_redc_x routines. I'm very interested to see your results! Without invariance from e.g modexp, I don't believe one can beat sbpi1_bdiv_r (or the older redc_1). Newer implementat