Re: -fdefault-integer-8 in c

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

 



On 10/03/2010 11:41 a.m., José Luis García Pallero wrote:
Hello,
Is possible to force integers to be 8 bytes length in gcc as in
gfortran? I need to do some maths and I need a matrix larger than 2GB
but my functiosns are programmed with indexes as int.

#define int long

?

<shudders> :)

I think the best way to do that would be to replace int with some type like "matrix_index", that way you can either:

typedef int matrix_index;

or

typedef long matrix_index;

Depending on how much precision you want at the time.

Cheers,
Nicholas Sherlock


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux