blob: ad1443a2601c76bfedd56807a47347ef4d812c1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
require_vector_vs;
P_X_LOOP(16, 5, {
if (ssa < 0) {
sa = -ssa;
sa = (sa == 16) ? 15 : sa;
pd = ps1 >> sa;
} else {
auto res = (sreg_t)ps1 << ssa;
P_SAT(res, 16);
pd = res;
}
})
|