<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
There are example in unittests/ADT/APFloatTest.cpp<br>
<br>
Create 80-bit FP (on x8664, it is corresponding to "long double" in
C/C++): <br>
<br>
APFloat(APFloat::x87DoubleExtended, "0xf.fffffffp+28");<br>
<br>
Create 128-bit: <br>
I don't know if llvm have run-time lib support for
quadruple-precision FP arithmetic. <br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 5/1/13 3:28 AM, edA-qa mort-ora-y
wrote:<br>
</div>
<blockquote cite="mid:5180EE4F.8060408@disemia.com" type="cite">
<pre wrap="">On 01/05/13 12:21, Duncan Sands wrote:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">How do I emit 80/128 bit FP constants. There is one ConstantFP::get
function which takes a double and another that takes a StringRef. Does
the StringRef version somehow do what I want?
</pre>
</blockquote>
<pre wrap="">Use the one that takes an APFloat.
</pre>
</blockquote>
<pre wrap="">
APFloat then offers the float/double/string constructors, and various
operations. I'm still not sure on how I can get a 80/128 bit float. Is
there an example somewhere?
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
</body>
</html>