ARM/Linux can fault on unaligned access

Sometimes SIGBUS results from unaligned access.
This commit is contained in:
Michael Davidsaver
2023-05-24 20:44:30 -07:00
parent 2547514abb
commit 87018882d1

View File

@@ -157,7 +157,7 @@ struct swap<8> {
* in execution time and/or object code size of byte-wise copy.
*/
#ifdef _ARCH_PPC
#if defined(_ARCH_PPC) || defined(__arm__) || defined(_M_ARM)
template<typename T>
union alignu {