samedi 21 décembre 2019

C++ Matrix union performance cost?

i wonder if this union has any cost in term of performance ?

struct Matrix4x4
{
    union
    {
        float m_sArray[16];
        float m_dArray[4][4];
        __m128 m_sseArray[4];
    }
}

Thanks !

Aucun commentaire:

Enregistrer un commentaire