[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C signed right shift portability

From: Kevin Ryde
Subject: C signed right shift portability
Date: 19 Aug 2001 10:11:12 +1000
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.5

This isn't a function as such, but it's a bit of a C trap, albeit a
rare one.

        * autoconf.texi (Function Portability): Mention C right shifts.

The gcc sources suggests it always does an arithmetic shift, so if
someone can confirm that then perhaps add:

        GCC however, as of version 3.0, generates arithmetic shifts on
        all processors it supports.

Attachment: autoconf.texi.rshift.diff
Description: Source code patch

reply via email to

[Prev in Thread] Current Thread [Next in Thread]