]> gcc.gnu.org Git - gcc.git/commit
ada: Implement fast modulo reduction for nonbinary modular multiplication
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 20 Apr 2024 10:26:52 +0000 (12:26 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 21 Jun 2024 08:34:22 +0000 (10:34 +0200)
commit9aa8324e8a2c992593591d965b3e2d527ed891d3
tree9a372d6c8200ea62ae235defdfec84e3f327ea2e
parent4e128544abc14871388ca194e61d6c482d3a11a6
ada: Implement fast modulo reduction for nonbinary modular multiplication

This adds the missing guard to prevent the reduction from being used when
the target does not provide or cannot synthesize a high-part multiply.

gcc/ada/

* gcc-interface/trans.cc (gnat_to_gnu) <N_Op_Mod>: Fix formatting.
* gcc-interface/utils2.cc: Include optabs-query.h.
(fast_modulo_reduction): Call can_mult_highpart_p on the TYPE_MODE
before generating a high-part multiply.  Fix formatting.
gcc/ada/gcc-interface/trans.cc
gcc/ada/gcc-interface/utils2.cc
This page took 0.057642 seconds and 5 git commands to generate.