Anyway, you can simplify away maskR and maskA by "shifting into walls", see _mm_slli_epi16 / _mm_srai_epi16.