- Fixed two typos as identified by dpJudas.

This commit is contained in:
Rachael Alexanderson 2017-02-25 15:32:50 -05:00
parent ed4fe39fbb
commit 9b40aa9605
2 changed files with 2 additions and 2 deletions

View file

@ -411,7 +411,7 @@ namespace swrenderer
else if (BlendT::Mode == (int)SpanBlendModes::Masked) else if (BlendT::Mode == (int)SpanBlendModes::Masked)
{ {
__m128i alpha = _mm_shufflelo_epi16(fgcolor, _MM_SHUFFLE(3, 3, 3, 3)); __m128i alpha = _mm_shufflelo_epi16(fgcolor, _MM_SHUFFLE(3, 3, 3, 3));
alpha = _mm_shufflehi_epi16(fgcolor, _MM_SHUFFLE(3, 3, 3, 3)); alpha = _mm_shufflehi_epi16(alpha, _MM_SHUFFLE(3, 3, 3, 3));
alpha = _mm_add_epi16(alpha, _mm_srli_epi16(alpha, 7)); // 255 -> 256 alpha = _mm_add_epi16(alpha, _mm_srli_epi16(alpha, 7)); // 255 -> 256
__m128i inv_alpha = _mm_sub_epi16(_mm_set1_epi16(256), alpha); __m128i inv_alpha = _mm_sub_epi16(_mm_set1_epi16(256), alpha);

View file

@ -333,7 +333,7 @@ namespace swrenderer
else if (BlendT::Mode == (int)WallBlendModes::Masked) else if (BlendT::Mode == (int)WallBlendModes::Masked)
{ {
__m128i alpha = _mm_shufflelo_epi16(fgcolor, _MM_SHUFFLE(3, 3, 3, 3)); __m128i alpha = _mm_shufflelo_epi16(fgcolor, _MM_SHUFFLE(3, 3, 3, 3));
alpha = _mm_shufflehi_epi16(fgcolor, _MM_SHUFFLE(3, 3, 3, 3)); alpha = _mm_shufflehi_epi16(alpha, _MM_SHUFFLE(3, 3, 3, 3));
alpha = _mm_add_epi16(alpha, _mm_srli_epi16(alpha, 7)); // 255 -> 256 alpha = _mm_add_epi16(alpha, _mm_srli_epi16(alpha, 7)); // 255 -> 256
__m128i inv_alpha = _mm_sub_epi16(_mm_set1_epi16(256), alpha); __m128i inv_alpha = _mm_sub_epi16(_mm_set1_epi16(256), alpha);