Michael Karcher
0ec6293221
mfbt:tests: Handle targets with less strict alignment in TestPair
...
Previously, the tests assumed that the alignment of int and long equals
their size. This commit fixes the tests for targets like m68k that have
sizeof(int) == 4 and alignof(int) == 2. A static helper function sizemax
was introduced as the offset of the second element in Pair<int,long>
might be either determined by its alignment requirement or the size of
the preceding int element and we use the helper function to pick the
larger of the two values.
2018-07-25 07:46:14 +08:00
..
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-25 07:46:14 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:10:50 +08:00
2018-07-25 07:14:03 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:10:50 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-25 06:42:22 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-25 06:42:14 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:11:48 +08:00
2018-07-25 06:20:58 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:10:50 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:10:50 +08:00
2018-07-25 07:13:09 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00
2018-07-24 23:04:07 +08:00