RFR: 8334755: Asymptotically faster implementation of square root algorithm [v47]
fabioromano1
duke at openjdk.org
Mon Jul 29 13:18:16 UTC 2024
> I have implemented the Zimmermann's square root algorithm, available in works [here](https://inria.hal.science/inria-00072854/en/) and [here](https://www.researchgate.net/publication/220532560_A_proof_of_GMP_square_root).
>
> The algorithm is proved to be asymptotically faster than the Newton's Method, even for small numbers. To get an idea of how much the Newton's Method is slow, consult my article [here](https://arxiv.org/abs/2406.07751), in which I compare Newton's Method with a version of classical square root algorithm that I implemented. After implementing Zimmermann's algorithm, it turns out that it is faster than my algorithm even for small numbers.
fabioromano1 has updated the pull request incrementally with one additional commit since the last revision:
If the input is a square, then s0 == 0, so testing for non-zero remainder is redundant
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/19710/files
- new: https://git.openjdk.org/jdk/pull/19710/files/9ca2a814..53b7adca
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=19710&range=46
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=19710&range=45-46
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/19710.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/19710/head:pull/19710
PR: https://git.openjdk.org/jdk/pull/19710
More information about the core-libs-dev
mailing list