time: Avoid alignment gaps in __tzfile_read
authorFlorian Weimer <fweimer@redhat.com>
Mon, 4 Feb 2019 09:01:29 +0000 (10:01 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 4 Feb 2019 09:01:29 +0000 (10:01 +0100)
commit221baae0012e56e4043b914fec47340ef3a1e0c8
tree3d6e6c931cffecfd10a836bc0acaf51410a3a5cc
parentb8c7238167de4c080b8b0909213bc7b5abef46e3
time: Avoid alignment gaps in __tzfile_read

By ordering the suballocations by decreasing alignment, alignment
gaps can be avoided.

Also use __glibc_unlikely for reading the transitions and type
indexes.  In the 8-byte case, two reads are now needed because the
transitions and type indexes are no longer adjacent.  The separate
call to __fread_unlocked does not matter from a performance point of
view because __tzfile_read is only invoked rarely.
ChangeLog
time/tzfile.c