This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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: Checking register value in buffer


On Thu, May 19, 2005 at 01:23:32PM +1000, Joel Brobecker wrote:
> >   sign = (LONGEST)1 << 63
> >   zero = sign - 1;
> 
> Isn't this assument that LONGEST is exactly 64 bits?

No.  Since you're extracting a signed 8-byte int, the bits
above 63 will all be replicas of bit 63.


r~


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