Re:C Is Not Suited to SIMD
by AlotOfReading on Monday January 27, 2025 @07:14PM
(#42847422)
Your compiler very likely assumes strict aliasing at whatever optimization level you're already using, so restrict usually won't do much. GCC does at O2, keil (and clang?) at O1.
[ Parent
| on HN ]
“strict aliasing” refers to disallowing pointers of different types to alias. In the context of a function that accepts two arrays of floats, for example, it doesn’t apply