I'm trying to learn SSE instructions and I aspire to multiply two matices. I have my data storage with an union. However, after i call _mm_mul_ps(__m128, __m128) i try to acces to the float* in the union causing an error. Here`s the code with the problem
If we ignore the fact that writing to vec then reading from afloat results in undefined behavior, the value written to vec will be the address used when afloat is dereferenced. Clearly that isn't what you want.