Likely GMP bug

Torbjörn Granlund tg at gmplib.org
Fri Jun 15 15:41:33 UTC 2018


Vincent Lefevre <vincent at vinc17.net> writes:

  But shouldn't it be the goal of the compiler to generate the fastest
  code for the target?

Yeah, that's a good idea.  :-)

This might require more analysis than what we can expect from the
compiler, as (x >> 1) >> c is not the same thing as x >> (1+c) (at least
not if the CPU truncates counts).

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-bugs mailing list