Skip to content

Commit

Permalink
Added missing bit shift operation for joint_matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammad-tanvir-1211 authored and Rbiessy committed Apr 17, 2024
1 parent f067e58 commit 191098e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/blas_test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ void set_to_zero_last_nbits(T &val, int32_t nbits = 13) {
std::conditional_t<sizeof(T) == 64, int64_t,
int32_t>;
integer_t *int_pntr = reinterpret_cast<integer_t *>(&val);
*int_pntr = (*int_pntr >> nbits) << nbits;
}

/**
Expand Down

0 comments on commit 191098e

Please sign in to comment.