Qlong-double

Changes the default size of the long double data type.

IDE Equivalent

None

Architectures

IA-32 architecture, Intel® 64 architecture, IA-64 architecture

Syntax

Linux and Mac OS: None
Windows:    /Qlong-double

Arguments

None

Default

OFF      The default size of the long double data type is 64 bits.

Description

The /Qlong-double option changes a long-double to an 80-bit data type. However, the alignment requirement of the data type is 16 bytes, and its size must be a multiple of its alignment, so the sizeof a long-double on Windows is 16 bytes as well. Only the lower 10 bytes (80 bits) of the 16 byte space will have valid data stored in it.

Furthermore, Microsoft libraries (such as printf) do not support long-double, so long doubles can only be passed to user written routines.

Alternate Options

None