bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 64 bit math on ia32


From: Dennis Cartier
Subject: Re: 64 bit math on ia32
Date: 28 Jan 2002 07:06:39 -0500

Hi Andreas,

Thank you for your help. Yes I had prototypes. I compiled with -Wall and
there were a few warnings, none related to this problem however.

I have figured out what I was doing wrong. I had to cast ALL the
parameters in my calculation. Most of them were constants, so I had
thought the compiler would not need this. It comes up with the right
answer now. Thank you.

Dennis

On Mon, 2002-01-28 at 05:37, Andreas Jaeger wrote:
> Dennis Cartier <address@hidden> writes:
> 
> > Hello,
> >
> > I am not sure this is a bug with glibc. I am trying to use Large File
> > Support with Debian Sid. I have compiled my program with the proper
> > defines. When I try to calculate my index as a gint64 var, it wraps at
> > 32 bits and my file is limited to 4GB.
> 
> Do you have proper prototypes?  Compile with gcc -Wall and fix the
> warnings.
> 
> I expect that this is a problem in your program,
> 
> Andreas
> 
> > I would have thought that Gcc would see that I am placing the final
> > result into a 64 bit type and would substitute in 64bit compatible math.
> > Is this not the case?
> >
> > If this will not work, how can I calculate a 64bit offset. I assume LFS
> > is not limited only to 64bit architectures?
> >
> > Any help would be appreciated.
> 
> 
> -- 
>  Andreas Jaeger
>   SuSE Labs address@hidden
>    private address@hidden
>     http://www.suse.de/~aj
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]