ni...@lysator.liu.se (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.

-- 
Torbjörn
Please encrypt, key id 0xC8601622
_______________________________________________
gmp-devel mailing list
gmp-devel@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-devel

Reply via email to