This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Soft float support and casting
- From: John Love-Jensen <eljay at adobe dot com>
- To: Simon Kagstrom <simon dot kagstrom at bth dot se>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Wed, 29 Nov 2006 06:41:44 -0600
- Subject: Re: Soft float support and casting
Hi Simon,
Would this work for your needs:
float BitsAsFloat(long l)
{
union
{
float f;
long l;
} retval;
retval.l = l;
return retval.f;
}
HTH,
--Eljay