Subject: Re: Q: ARM32 ABI
To: Godmar Back <gback@cs.utah.edu>
From: Mark Brinicombe <mark@causality.com>
List: port-arm32
Date: 06/04/1998 19:09:50
On Thu, 4 Jun 1998, Godmar Back wrote:
> In particular, I need to implement a function that turns a double number
> into its IEEE 754 floating-point "double format" bit layout, where
> Bit 63 represents the sign of the floating-point number. Bits 62-52
> represent the exponent. Bits 51-0 represent the significand (sometimes
> called the mantissa) of the floating-point number.
>
> * Is it correct to implement this function like so:
>
> long long doubleToLongBits(double val) { return *(long long *)&val; }
Have you had a look at the softfloat library we use. It might provide some
useful information
src/lib/libc/arch/arm32/fplib/*
in the libc sources contains the softfloat library and veneers for GCC
etc.
Cheers,
Mark