This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: portable signed right shift
- To: jsm28 at cam dot ac dot uk (Joseph S. Myers)
- Subject: Re: portable signed right shift
- From: Joe Buck <jbuck at racerx dot synopsys dot com>
- Date: Wed, 28 Mar 2001 14:25:45 -0800 (PST)
- Cc: ross dot s at ihug dot co dot nz (Ross Smith), gcc at gcc dot gnu dot org
> On Thu, 29 Mar 2001, Ross Smith wrote:
>
> > There's nothing in the definition of C that says that -1 / 2 = 0 either,
> > for that matter.
>
> C99 subclause 6.5.5 paragraph 6 and footnote 87.
Right, but in C89 it is unspecified, meaning that it is not a safe
assumption for a programmer to make.