Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#13415: Update left shift #15538

Merged
merged 1 commit into from
Dec 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,9 @@ template <bool APPROXIMATION_MODE, int ITERATIONS = 8>
inline void calculate_left_shift(const uint shift_amt) {
#pragma GCC unroll 0
for (int d = 0; d < ITERATIONS; d++) {
vInt val = dst_reg[0];
vInt v = val;

val = val << shift_amt;
val = setsgn(val, v);
dst_reg[0] = val;

TTI_SFPLOAD(0,12,ADDR_MOD_7,0);
TT_SFPSHFT(shift_amt,0,0,1);
TTI_SFPSTORE(0,12,ADDR_MOD_7,0);
dst_reg++;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,9 @@ template <bool APPROXIMATION_MODE, int ITERATIONS = 8>
inline void calculate_left_shift(const uint shift_amt) {
#pragma GCC unroll 0
for (int d = 0; d < ITERATIONS; d++) {
vInt val = dst_reg[0];
vInt v = val;

val = val << shift_amt;
val = setsgn(val, v);
dst_reg[0] = val;

TTI_SFPLOAD(0,4,3,0);
TT_SFPSHFT(shift_amt,0,0,1);
TTI_SFPSTORE(0,4,3,0);
dst_reg++;
}
}
Expand Down
Loading