Skip to content

Commit

Permalink
Saving...
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Apr 18, 2015
1 parent 0d5189a commit b682302
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extra/simdextract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ uint32_t branchingextract (__m128i out, int i) {
int main() {
__m128i out = _mm_set_epi32(4,3,2,1);
const size_t repeat = 10000;

for(int T=0; T<4; ++T) {
assert(branchlessextract (out,T) == branchingextract (out,T));
}

for(int k = 0; k < 3; ++k) {
const clock_t S0 = clock();
uint32_t bogus1 = 0;
Expand Down

0 comments on commit b682302

Please sign in to comment.