<div dir="ltr">Hi Akash,<div><div><br></div><div>I guess your best option is to use APFloat::bitcastToAPInt(), which returns the integer representation of the underlying bits.</div><div><br></div><div>Cheers,</div><div>Ehud.</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 22, 2020 at 6:56 AM Akash Banerjee via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p style="margin-top:0px;font-family:Helvetica,Arial,sans-serif;font-size:15px">Hi all,</p><p style="font-family:Helvetica,Arial,sans-serif;font-size:15px">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?</p><p style="font-family:Helvetica,Arial,sans-serif;font-size:15px">I tried ConvertToHexString, but for x86_fp80 0xK8FFFC000000000000000, it just returns nan, instead I want the actual byte information.</p><p style="font-family:Helvetica,Arial,sans-serif;font-size:15px">There are APIs like convertToDouble and convertToFloat for APFloat single and double precision, I am looking for something similar for extended precision(X86_FP80).</p><p style="font-family:Helvetica,Arial,sans-serif;font-size:15px">Thanks,<br>Akash</p></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>