4 ms·
Does someone know what the problem is with the intrinsics? Or is there a problem? The author states that this breaks his debug build for some reason.
by albertzeyer 6y ago
Does someone know what the problem is with the intrinsics? Or is there a problem? The author states that this breaks his debug build for some reason.
- lasagnaphil 6y agoI think the author called _mm_load_ps() on a pointer that isn’t 16-bit aligned. Either change that to _mm_loadu_ps() (which also works on unaligned pointers but incurs a performance penalty), or make sure your object is aligned when doing the heap allocation (there’s a STL function called aligned_alloc() in C++, probably there’s something similar in Rust)
- Twirrim 6y agoWhy would that only fail on debug builds and not release builds, though? That seems really strange to me
- cptroot 6y agoDebug and release builds probably call slightly different sets of methods, so they might end up with slightly different heaps. That might be enough to cause a difference in offset between the builds.