This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about setting of fuller_mask in force_to_mode()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]