[cfe-dev] Integer and Float type definitions with respect to bits number

Mehmet Erol Sanliturk m.e.sanliturk at gmail.com
Sun Nov 10 07:38:10 PST 2013


Dears All ,


It seems that , in Clang , there is no a type system like the following :


Integer_8_Bits_Positive
Integer_8_Bits_Signed



Integer_16_Bits_Positive
Integer_16_Bits_Signed



Integer_32_Bits_Positive
Integer_32_Bits_Signed


Integer_64_Bits_Positive
Integer_64_Bits_Signed




Float_48_Bits
Float_64_Bits
Float_80_Bits
Float_128_Bits


The following are defined with respect to above types AND Operating System
,
Processor requirements to enable to compile the SAME sources for different
environments :

Integer_Default_Bits_Positive
Integer_Default_Bits_Signed

Float_Default_Bits


The existing definitions ( long , long long , etc. ) are very ambiguous and
depending on the platform without clearly showing exact bits number .



Is there a possibility to include definitions such as above into Clang
or , if there exist such a definition , what is its name ?


Thank you very much .

Mehmet Erol Sanliturk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131110/e22b66d3/attachment.html>


More information about the cfe-dev mailing list