A New Variant of the Barrett Algorithm Applied to Quotient Selection
Authors:
- 1 June 2018
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 138-144
Abstract
Quotient Selection (QS) is a key step in the classic O(n 2 ) multiple precision division algorithm. On processors with fast hardware division, it is a trivial problem, but on GPUs, division is quite slow. In this paper we investigate the effectiveness of Brent and Zimmermann's variant as well as our own novel variant of Barrett's algorithm. Our new approach is shown to be suitable for low radix (single precision) QS. Three highly optimized implementations, two of the Brent and Zimmerman variant and one based on our new approach, have been developed and we show that each is many times faster than using the division operation built in to the compiler. In addition, our variant is on average 22 % faster than the other two implementations. We also sketch proofs of correctness for all of the implementations and our new algorithm.Keywords
This publication has 9 references indexed in Scilit:
- Fast Arithmetic Modulo 2^x p^y ± 12017
- Double-Speed Barrett Moduli2016
- An improvement of the Barrett modular reduction algorithmInternational Journal of Computer Mathematics, 2014
- Modern Computer Arithmetic2010
- Faster Interleaved Modular Multiplication Based on Barrett and Montgomery Reduction MethodsIEEE Transactions on Computers, 2010
- Modular reduction without precomputational phase2009
- Fast Modular Reduction18th IEEE Symposium on Computer Arithmetic (ARITH '07), 2007
- High-Speed RSA Hardware Based on Barret’s Modular Reduction MethodLecture Notes in Computer Science, 2000
- High-precision division and square rootACM Transactions on Mathematical Software, 1997