From 83e0e425c61c4e03f61114a88f117db1553cd44c Mon Sep 17 00:00:00 2001 From: Fengwei Yin Date: Sat, 24 May 2014 05:32:09 +0800 Subject: x86_64: Align uint64_t/int64_t structure member to 8 bytes To make sure the stature which pass between 32/64bit process have same memory layout for 32/64bit. Signed-off-by: Fengwei Yin Co-Authored-by: Narayan Kamath (Unit test only.) Change-Id: I1bc2d12cce41ec0bc484adcaf968f274bec75c12 --- include/input/Input.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/input/Input.h') diff --git a/include/input/Input.h b/include/input/Input.h index e778076..7c662a7 100644 --- a/include/input/Input.h +++ b/include/input/Input.h @@ -170,7 +170,7 @@ struct PointerCoords { enum { MAX_AXES = 14 }; // 14 so that sizeof(PointerCoords) == 64 // Bitfield of axes that are present in this structure. - uint64_t bits; + uint64_t bits __attribute__((aligned(8))); // Values of axes that are stored in this structure packed in order by axis id // for each axis that is present in the structure according to 'bits'. -- cgit v1.1