cent and ucent?

Marco Leise Marco.Leise at gmx.de
Tue Jan 31 10:47:34 PST 2012


Am 31.01.2012, 16:07 Uhr, schrieb Stewart Gordon <smjg_1998 at yahoo.com>:

> On 30/01/2012 16:00, Timon Gehr wrote:
>> On 01/30/2012 03:59 AM, H. S. Teoh wrote:
>>> On Sun, Jan 29, 2012 at 05:48:40PM -0800, Walter Bright wrote:
>>>> On 1/29/2012 2:26 PM, Jonathan M Davis wrote:
>>>>> long double is 128-bit.
>>>>
>>>> Sort of. It's 80 bits of useful data with 48 bits of unused padding.
>>>
>>> Really?! Ugh. Hopefully D handles it better?
>>>
>>> T
>>
>> It is what the x86 hardware supports.
>
> As I try it, real.sizeof == 10.  And by According to DMC 8.42n (where is  
> 8.52?), sizeof(long double) == 10 as well.
>
> Stewart.

	pragma(msg, real.sizeof);

Prints the expected platform alignment for me:

DMD64 / GDC64: 16LU
DMD32:         12LU


More information about the Digitalmars-d mailing list