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: Andreas Jaeger
Subject: Re: 64 bit math on ia32
Date: Mon, 28 Jan 2002 11:37:57 +0100
User-agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Artificial Intelligence, i386-suse-linux)

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]