Skip to content

Commit

Permalink
Issue #46: fixed memcpy src-dst order in profiler app
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhoshkun committed Apr 16, 2019
1 parent 55fd74c commit edbc9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/rgbswap/profile_argb_to_bgra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ int main(int argc, char *argv[])
unsigned char *argb_memcpy = nullptr;
argb_memcpy = reinterpret_cast<unsigned char *>(malloc(l * sizeof(unsigned char)));
t1 = high_resolution_clock::now();
memcpy(argb, argb_memcpy, l * sizeof(unsigned char));
memcpy(argb_memcpy, argb, l * sizeof(unsigned char));
t2 = high_resolution_clock::now();
duration = duration_cast<microseconds>( t2 - t1 ).count();
cout << "memcpy took: " << duration << " usec" << endl;
Expand Down

0 comments on commit edbc9ac

Please sign in to comment.