Help stabilising mini-gmp

Torbjörn Granlund tg at
Sun Nov 27 00:08:50 UTC 2016

nisse at (Niels Möller) writes:

  Bit it's surprising to me too that also non-overflowing left shift of
  negative values is undefined. So it seems generally unsafe to use shift
  on signed types, except possibly for constants.
It is pretty silly.  By leaving a useful operation undefined, one cannot
use it anywhere if one cares about perfect portability.  Here we have an
operation which in practce will work anywhere made somewhat useless by
the C/C++ committees.

Please encrypt, key id 0xC8601622

More information about the gmp-devel mailing list