This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [PATCH] define WIDEST_HARDWARE_FP_SIZE on mips


On Wed, 4 Mar 2009, Geert Bosch wrote:

> Yes, a-numaux has to go. Still, a problem when interfacing to a C math
> library is that there is no widely recognized way to identify functions for
> different types. For example, IA-64 supports 32, 64 and 80-bit float types
> in hardware. There also is some support for emulating 128-bit float types.
> What functions am I going to call to get accurate implementations of the
> sine function for all 4 floating-point types?

C90 defines the functions for double; C99 adds functions for float and 
long double (whose names were reserved in C90, but the functions weren't 
required) and a lot more functions for all the types.  So for types 
matching FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE or LONG_DOUBLE_TYPE_SIZE you 
know what functions to use (subject to per-multilib autoconf checks for 
availability of the C99 functions, as used by libgfortran and libstdc++); 
it's only types that aren't standard C types (such as __float128) for 
which the functions may not be available and don't have standard names.

-- 
Joseph S. Myers
joseph@codesourcery.com


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