Skip to content

Commit

Permalink
Change operation order for clang?
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericgig committed Jan 16, 2025
1 parent 1f9f145 commit 287456f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qutip/core/data/src/matmul_csr_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void _matmul_dag_csr_vector(
num2 = _mm_set_pd(std::imag(vec[col_index[ptr]]),
std::real(vec[col_index[ptr]]));
num3 = _mm_mul_pd(num2, num1);
num1 = _mm_loaddup_pd(&reinterpret_cast<const double(&)[2]>(-data[ptr])[1]);
num1 = _mm_loaddup_pd(- &reinterpret_cast<const double(&)[2]>(data[ptr])[1]);
num2 = _mm_shuffle_pd(num2, num2, 1);
num2 = _mm_mul_pd(num2, num1);
num3 = _mm_addsub_pd(num3, num2);
Expand Down

0 comments on commit 287456f

Please sign in to comment.