This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question about setting of fuller_mask in force_to_mode()
- From: Jim Wilson <wilson at tuliptree dot org>
- To: Ian Lance Taylor <ian at airs dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 09 Sep 2003 11:06:08 -0700
- Subject: Re: Question about setting of fuller_mask in force_to_mode()
- References: <20030909063113.16325.qmail@gossamer.airs.com>
Ian Lance Taylor wrote:
This code hasn't been changed since egcs was started. I don't know if
there is any older RCS history anywhere these days.
There is no convenient RCS or email history before the egcs start.
However, I find it useful to keep a collection of all of the gcc-2.x
releases. Sometimes one can find useful info by looking at the sources
that existed at the time the patch was added. Not in this case though,
it looks like this one came in via a moderate size rewrite on Aug 3, 1993.
if (mask & ((unsigned HOST_WIDE_INT) 1 << (HOST_BITS_PER_WIDE_INT - 1)))
fuller_mask = ~(unsigned HOST_WIDE_INT) 0;
else
fuller_mask = (((unsigned HOST_WIDE_INT) 1 << (floor_log2 (mask) + 1)) - 1);
This looks reasonble to me.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com