[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
Hi Akash,
I guess your best option is to use APFloat::bitcastToAPInt(), which returns
the integer representation of the underlying bits.
Cheers,
Ehud.
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
> precision(X86_FP80).
>
> Thanks,
> Akash
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200122/ad564609/attachment.html>
More information about the llvm-dev
mailing list