<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 10, 2013 at 1:29 PM, Halfdan Ingvarsson <span dir="ltr"><<a href="mailto:halfdan@sidefx.com" target="_blank">halfdan@sidefx.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Have a look at <stdint.h> for
integer types. This should be a part of your standard library for
any C99-compliant compilers. For Windows, they're included in
MSVC2012 onwards.<br>
<br>
float and double are always defined to be 32- and 64-bit,
respectively. Beyond that you're in a platform-specific extension
area. See, for example:
<a href="http://gcc.gnu.org/onlinedocs/gcc/Floating-Types.html" target="_blank">http://gcc.gnu.org/onlinedocs/gcc/Floating-Types.html</a><br>
<br>
- ½<br>
<br></div></div></blockquote><div><br><br></div><div>In Linux :<br></div><div>/usr/lib/clang/3.3/include/stdint.h <br><br></div><div>contains these definitions .<br><br></div><div>In Clang , there is no <br><br>quadmath.h .<br>
<br></div><div>When Clang encounters <br></div><div><br>#include <quadmath.h><br><br></div><div>it is using gcc source , but it is giving errors .<br></div><div><br></div><div>( In /usr/lib/gcc/x86_86-redhat-linux/4.7.2/include/quadmath.h , <br>
</div><div>there are __float128 and __complex128 )<br></div><div><br></div><div>I could not find any __float64 , __float80 , __complex64 , __complex80 .<br><br><br><br></div><div>Thank you very much .<br><br><br></div><div>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><div>
On 13-11-10 10:38 AM, Mehmet Erol Sanliturk wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
Dears All ,<br>
<br>
<br>
It seems that , in Clang , there is no a type system like the
following :<br>
<br>
<br>
Integer_8_Bits_Positive <br>
Integer_8_Bits_Signed<br>
<br>
<br>
<br>
Integer_16_Bits_Positive <br>
Integer_16_Bits_Signed<br>
<br>
<br>
<br>
Integer_32_Bits_Positive <br>
Integer_32_Bits_Signed<br>
<br>
<br>
Integer_64_Bits_Positive <br>
Integer_64_Bits_Signed<br>
<br>
<br>
<br>
<br>
Float_48_Bits<br>
Float_64_Bits<br>
Float_80_Bits<br>
Float_128_Bits<br>
<br>
<br>
The following are defined with respect to above types AND
Operating System , <br>
Processor requirements to enable to compile the SAME sources for
different<br>
environments :<br>
<br>
Integer_Default_Bits_Positive <br>
Integer_Default_Bits_Signed<br>
<br>
Float_Default_Bits<br>
<br>
<br>
The existing definitions ( long , long long , etc. ) are very
ambiguous and<br>
depending on the platform without clearly showing exact bits
number . <br>
<br>
<br>
<br>
Is there a possibility to include definitions such as above into
Clang<br>
or , if there exist such a definition , what is its name ?<br>
<br>
<br>
Thank you very much .<br>
<br>
Mehmet Erol Sanliturk<br>
<br>
<br>
<br>
<br>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
cfe-dev mailing list
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div></div>