----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Good point... my mistake
-MG
Fernando Salazar wrote:
>
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Um, since a Java int value of specified by the literal '0xffff' has a 32-bit
> value of 0x0000FFFF, how does a bitwise AND with such a value not
> zero-out the hi-order byte?
>
> - Fernando
>
> >
> > The '& 0xffff' won't place 0's in the higher registers. It will just
> > leave them there if they're already present. If, on the other hand,
> > there are 1's there, it'll leave those too...
> >
> > But, as you said, it doesnt really matter :-)
> >
> > -MG
> >
> > Arkaitz Bitorika wrote:
> > > You are supposing that the Java integers are 16 bit long, and I
> > think they
> > > actually are 32 bit integers, so the & 0xffff operation will put 0s in
> > > the higher 16 bits.
> > > I have no idea what it is doing this here, but it certainly
> > *is* having an
> > > effect.
> > >
> > > Cheers,
> > >
> > > Arkaitz.
> > >
> >
> >
> > --
> > --------------------------------------------------------------
> > Please read the FAQ! <http://java.apache.org/faq/>
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Archives and Other: <http://java.apache.org/main/mail.html>
> > Problems?: [EMAIL PROTECTED]
> >
> >
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]