]> rtime.felk.cvut.cz Git - ulut.git/commit
Do not use standard defined __alignof__ for structure filed alignment determination.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Thu, 6 Nov 2014 11:01:41 +0000 (12:01 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Thu, 6 Nov 2014 11:01:41 +0000 (12:01 +0100)
commit4f6466e329d6a29be340a8c6457366d3dedc9509
tree149f9baddc6d0d0ef8ad4d0687f064e89a3eccd6
parentcef9837d3c15bb43892db981bb9e4a2e4bef080a
Do not use standard defined __alignof__ for structure filed alignment determination.

The problem is that __alignof__ returns optimal alignment for type
for performance but that can differ from actual ABI specified
alignment for structure field of respective type type.

I.e. x86_64 double structure field alignment is 4 per ABI definition
but preferred alignment for performance is 8.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
ulut/ul_utdefs.h