support of 128 bit long real on linux for ia32

Bo Thorsen bo@sonofthor.dk
Wed Feb 13 05:41:00 GMT 2002


On Wednesday 13 February 2002 14:07, Stephen L Moshier wrote:
> > Do plan to enhance your compiler in order to get
> > "long double" in C compatible with real(16) in fortran ?
>
> It was a straightforward job to implement the "long double"
> type in i386 gcc as 128-bit soft-float TFmode with 113-bit precision.
> I might still have the patches for that (though they would be about
> eight years old now).
>
> You cannot easily have both 80-bit and 128-bit support in gcc at the
> same time, however.  I think you might have to implement
> a "long long double" which probably no one has done yet.

On x86-64 the ABI has both long double and float128 and they're both 
sizeof()==16. This problem has not yet been solved - float128 and int128 are 
optional in the ABI so we haven't thought much about it yet.

Bo.

-- 

     Bo Thorsen                 |   Praestevejen 4
     Free software developer    |   5290 Marslev
     SuSE Labs                  |   Denmark



More information about the Gcc mailing list