aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2024-04-20 12:26:52 +0200
committerMarc Poulhiès <poulhies@adacore.com>2024-06-21 10:34:22 +0200
commit9aa8324e8a2c992593591d965b3e2d527ed891d3 (patch)
tree9a372d6c8200ea62ae235defdfec84e3f327ea2e /libcpp
parent4e128544abc14871388ca194e61d6c482d3a11a6 (diff)
downloadgcc-9aa8324e8a2c992593591d965b3e2d527ed891d3.zip
gcc-9aa8324e8a2c992593591d965b3e2d527ed891d3.tar.gz
gcc-9aa8324e8a2c992593591d965b3e2d527ed891d3.tar.bz2
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.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions