<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Why not?<div class=""><br class=""></div><div class=""><a href="https://github.com/apple/swift/blob/8d9ef80304d7b36e13619ea50e6e76f3ec9221ba/test/Inputs/clang-importer-sdk/usr/include/ctypes.h#L146" class="">https://github.com/apple/swift/blob/8d9ef80304d7b36e13619ea50e6e76f3ec9221ba/test/Inputs/clang-importer-sdk/usr/include/ctypes.h#L146</a></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 23 Mar 2016, at 21:29, Saleem Abdulrasool &lt;<a href="mailto:compnerd@compnerd.org" class="">compnerd@compnerd.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">On Wed, Mar 23, 2016 at 2:28 PM, Alex Blewitt<span class="Apple-converted-space">&nbsp;</span><span dir="ltr" class="">&lt;<a href="mailto:alex.blewitt@gmail.com" target="_blank" class="">alex.blewitt@gmail.com</a>&gt;</span><span class="Apple-converted-space">&nbsp;</span>wrote:<br class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;">There’s a Float80 type, if you’re looking for an 80-bit floating point value.<br class=""></blockquote><div class=""><br class=""></div><div class="">Im explicitly trying to import a call from C through the clang-importer (to ensure that long doubles are imported correctly).&nbsp; As such, unfortunately, I don't think that the use of Float80 is appropriate in this case.</div><div class="">&nbsp;</div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;">Alex<br class=""><div class=""><div class="h5"><br class="">&gt; On 23 Mar 2016, at 21:25, Saleem Abdulrasool via swift-dev &lt;<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>&gt; wrote:<br class="">&gt;<br class="">&gt; Hi,<br class="">&gt;<br class="">&gt; I was looking at an ABI related issue on Windows.&nbsp; In trying to construct a test case, it seems that I am unable to import a declaration using a long double into swift.&nbsp; I was wondering if there is something about long double usage in swift that I am unaware of.<br class="">&gt;<br class="">&gt; Inputs/abi.h:<br class="">&gt;<br class="">&gt; float fp32_call(void);<br class="">&gt; double fp64_call(void);<br class="">&gt; long double fp80_call(void);<br class="">&gt;<br class="">&gt; Inputs/module.map:<br class="">&gt;<br class="">&gt; module abi {<br class="">&gt;&nbsp; &nbsp;header "abi.h"<br class="">&gt; }<br class="">&gt;<br class="">&gt; test.swift:<br class="">&gt;<br class="">&gt; %swift -I Inputs -parse %s<br class="">&gt; import abi<br class="">&gt;<br class="">&gt; @inline(never)<br class="">&gt; func blackhole&lt;T&gt;(t : T) { }<br class="">&gt;<br class="">&gt; func test_floating_point() {<br class="">&gt; }<br class="">&gt;<br class="">&gt; Thanks!<br class="">&gt;<br class="">&gt; --<br class="">&gt; Saleem Abdulrasool<br class="">&gt; compnerd (at) compnerd (dot) org<br class=""></div></div>&gt; _______________________________________________<br class="">&gt; swift-dev mailing list<br class="">&gt;<span class="Apple-converted-space">&nbsp;</span><a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a><br class="">&gt;<span class="Apple-converted-space">&nbsp;</span><a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank" class="">https://lists.swift.org/mailman/listinfo/swift-dev</a><br class=""><br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>--<span class="Apple-converted-space">&nbsp;</span><br class=""><div class="gmail_signature">Saleem Abdulrasool<br class="">compnerd (at) compnerd (dot) org</div></div></div></div></blockquote></div><br class=""></div></body></html>