[llvm-dev] X86_FP80 in APFloat
Ehud Katz via llvm-dev
llvm-dev at lists.llvm.org
Wed Jan 22 01:32:31 PST 2020
I guess your best option is to use APFloat::bitcastToAPInt(), which returns
the integer representation of the underlying bits.
On Wed, Jan 22, 2020 at 6:56 AM Akash Banerjee via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hi all,
> I want to extract the actual value of an X86_FP80 APFloat Constant. Is
> there any API with which I can get the value of mantissa and exponent?
> I tried ConvertToHexString, but for x86_fp80 0xK8FFFC000000000000000, it
> just returns nan, instead I want the actual byte information.
> There are APIs like convertToDouble and convertToFloat for APFloat single
> and double precision, I am looking for something similar for extended
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev