File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -150,14 +150,17 @@ struct swap<8> {
150
150
#undef _PVA_swap64
151
151
152
152
/* PVD serialization doesn't pay attention to alignement,
153
- * which some targets really care about and treat unaligned
153
+ * which some targets (ARM and powerpc) really care about and treat unaligned
154
154
* access as a fault, or with a heavy penalty (~= to a syscall).
155
155
*
156
156
* For those targets,, we will have to live with the increase
157
157
* in execution time and/or object code size of byte-wise copy.
158
+ *
159
+ * Treat x86 32/64 as an outlier, and assume all other targets
160
+ * need, or greatly benefit, from aligned access.
158
161
*/
159
162
160
- #if defined(_ARCH_PPC ) || defined(__arm__ ) || defined(_M_ARM )
163
+ #if !( defined(__x86_64__ ) || defined(_M_AMD64 ) || defined(__i386__) || defined(_M_IX86) )
161
164
162
165
template <typename T>
163
166
union alignu {
You can’t perform that action at this time.
0 commit comments