malign-double

Determines whether double, long double, and long long types are naturally aligned. This option is equivalent to specifying option align. This content is specific to C++; it does not apply to DPC++.

Architecture Restrictions

Only available on IA-32 architecture

Syntax

Linux:

-malign-double

-mno-align-double

Windows:

None

Arguments

None

Default

-mno-align-double

Types are aligned according to the gcc model, which means they are aligned to 4-byte boundaries.

Description

This content is specific to C++; it does not apply to DPC++. For details, see the align option.

This content is specific to DPC++.

Type

Alignment

double

8 bytes

long long

8 bytes

long double

16 bytes

CAUTION

If you are interacting with compatible libraries, this option can improve performance by reducing misaligned accesses. However, if you are interacting with noncompatible libraries, your application may not perform as expected.

IDE Equivalent

None

Alternate Options

None