forked from boostorg/endian
Revert the default (*_t) types to unaligned, and used *_at to identify the aligned types. See mini-review thread for rationale.
This commit is contained in:
+12
-12
@@ -162,84 +162,84 @@ namespace
|
||||
void test_big_align_int16()
|
||||
{
|
||||
cout << "<tr><td>16-bit aligned big endian</td>";
|
||||
time<int16_t, big_int16_t>();
|
||||
time<int16_t, big_int16_at>();
|
||||
cout << "</tr>\n";
|
||||
}
|
||||
|
||||
void test_little_align_int16()
|
||||
{
|
||||
cout << "<tr><td>16-bit aligned little endian</td>";
|
||||
time<int16_t, little_int16_t>();
|
||||
time<int16_t, little_int16_at>();
|
||||
cout << "</tr>\n";
|
||||
}
|
||||
|
||||
void test_big_int16()
|
||||
{
|
||||
cout << "<tr><td>16-bit unaligned big endian</td>";
|
||||
time<int16_t, big_int16_ut>();
|
||||
time<int16_t, big_int16_t>();
|
||||
cout << "</tr>\n";
|
||||
}
|
||||
|
||||
void test_little_int16()
|
||||
{
|
||||
cout << "<tr><td>16-bit unaligned little endian</td>";
|
||||
time<int16_t, little_int16_ut>();
|
||||
time<int16_t, little_int16_t>();
|
||||
cout << "</tr>\n";
|
||||
}
|
||||
|
||||
void test_big_align_int32()
|
||||
{
|
||||
cout << "<tr><td>32-bit aligned big endian</td>";
|
||||
time<int32_t, big_int32_t>();
|
||||
time<int32_t, big_int32_at>();
|
||||
cout << "</tr>\n";
|
||||
}
|
||||
|
||||
void test_little_align_int32()
|
||||
{
|
||||
cout << "<tr><td>32-bit aligned little endian</td>";
|
||||
time<int32_t, little_int32_t>();
|
||||
time<int32_t, little_int32_at>();
|
||||
cout << "</tr>\n";
|
||||
}
|
||||
|
||||
void test_big_int32()
|
||||
{
|
||||
cout << "<tr><td>32-bit unaligned big endian</td>";
|
||||
time<int32_t, big_int32_ut>();
|
||||
time<int32_t, big_int32_t>();
|
||||
cout << "</tr>\n";
|
||||
}
|
||||
|
||||
void test_little_int32()
|
||||
{
|
||||
cout << "<tr><td>32-bit unaligned little endian</td>";
|
||||
time<int32_t, little_int32_ut>();
|
||||
time<int32_t, little_int32_t>();
|
||||
cout << "</tr>\n";
|
||||
}
|
||||
|
||||
void test_big_align_int64()
|
||||
{
|
||||
cout << "<tr><td>64-bit aligned big endian</td>";
|
||||
time<int64_t, big_int64_t>();
|
||||
time<int64_t, big_int64_at>();
|
||||
cout << "</tr>\n";
|
||||
}
|
||||
|
||||
void test_little_align_int64()
|
||||
{
|
||||
cout << "<tr><td>64-bit aligned little endian</td>";
|
||||
time<int64_t, little_int64_t>();
|
||||
time<int64_t, little_int64_at>();
|
||||
cout << "</tr>\n";
|
||||
}
|
||||
|
||||
void test_big_int64()
|
||||
{
|
||||
cout << "<tr><td>64-bit unaligned big endian</td>";
|
||||
time<int64_t, big_int64_ut>();
|
||||
time<int64_t, big_int64_t>();
|
||||
cout << "</tr>\n";
|
||||
}
|
||||
|
||||
void test_little_int64()
|
||||
{
|
||||
cout << "<tr><td>64-bit unaligned little endian</td>";
|
||||
time<int64_t, little_int64_ut>();
|
||||
time<int64_t, little_int64_t>();
|
||||
cout << "</tr>\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user