]> git.ipfire.org Git - thirdparty/gcc.git/commit
Minor tweaks to code computing modular multiplicative inverse
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 29 Apr 2024 15:46:20 +0000 (17:46 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Wed, 8 May 2024 08:06:17 +0000 (10:06 +0200)
commit10e34aa5b1d23e1517f0ca5cfae3cac3b51a7a53
tree1ec993e2da35d41caeb7f1575061601f8cb4e5e5
parentd826f7945609046f922732b138fb90795d5b1985
Minor tweaks to code computing modular multiplicative inverse

This removes the last parameter of choose_multiplier, which is unused, adds
another assertion and more details to the description and various comments.
Likewise to the closely related invert_mod2n, except for the last parameter.

[changelog]
* expmed.h (choose_multiplier): Tweak description and remove last
parameter.
* expmed.cc (choose_multiplier): Likewise.  Add assertion for the
third parameter and adds details to various comments.
(invert_mod2n): Tweak description and add assertion for the first
parameter.
(expand_divmod): Adjust calls to choose_multiplier.
* tree-vect-generic.cc (expand_vector_divmod): Likewise.
* tree-vect-patterns.cc (vect_recog_divmod_pattern): Likewise.
gcc/expmed.cc
gcc/expmed.h
gcc/tree-vect-generic.cc
gcc/tree-vect-patterns.cc