Keil Logo

double Scalars

Scalars of type double are stored using eight bytes (64-bits) following the IEEE-754 standard. They are stored in little endian (default) or big endian (if the BIGENDIAN compiler directive is specified).

Little Endian (default)

When configured for little endian, the low-order byte is stored first, followed by the high-order byte. For example, an integer value of 0x123456789ABCDEF0 is stored in memory as follows:

Address Offset +0 +1 +2 +3 +4 +5 +6 +7
Contents 0xF0 0xDE 0xBC 0x9A 0x78 0x56 0x34 0x12

Big Endian

When configured for big endian, the high-order byte is stored first, followed by the low-order byte. For example, an integer value of 0x12345678 is stored in memory as follows:

Address Offset +0 +1 +2 +3 +4 +5 +6 +7
Contents 0x12 0x34 0x56 0x78 0x9A 0xBC 0xDE 0xF0
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.