Skip to content

Instantly share code, notes, and snippets.

@grafi-tt
Last active December 26, 2015 23:23
Show Gist options
  • Save grafi-tt/0c056397293647d3f14b to your computer and use it in GitHub Desktop.
Save grafi-tt/0c056397293647d3f14b to your computer and use it in GitHub Desktop.
--- suda-bug.c 2014-07-15 03:32:15.950329411 +0900
+++ suda.c 2014-07-15 03:32:22.298329432 +0900
@@ -80,15 +80,19 @@
case 0:
amask_reg = _mm256_set_pd(one, one, one, one);
rmask_reg = _mm256_set_pd(0, one, one, one);
+ break;
case 1:
amask_reg = _mm256_set_pd(0, 0, 0, one);
rmask_reg = _mm256_set_pd(one, one, one, 0);
+ break;
case 2:
amask_reg = _mm256_set_pd(0, 0, one, one);
rmask_reg = _mm256_set_pd(one, one, 0, one);
+ break;
case 3:
amask_reg = _mm256_set_pd(0, one, one, one);
rmask_reg = _mm256_set_pd(one, 0, one, one);
+ break;
}
double alph = *alph_ptr;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment