This is the mail archive of the guile@cygnus.com mailing list for the guile project.


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

Re: gsubr.c: C << operator question.


>>>>> "Gord" == Gordon Matzigkeit <gord@trick.fig.org> writes:

>>>>> Karl M Hegbloom writes:

    KMH> ... Why does it first << 8 and then right away do >> 8,
    KMH> recompute and compare like that?  How could the value change?

    Gord> (x << 8) >> 8 == x with the top 8 bits cleared

 Ok, so wouldn't it be faster to use (x & 0xff)?