blob: ad180131ef86e1c69643de1fa4af6f773334b3fc (
plain)
1
2
3
4
5
6
7
8
9
10
|
require_vector_vs;
P_STRAIGHT_ULOOP(16, {
bool sat = false;
pd = (sat_add<int16_t, uint16_t>(ps1, ps2, sat));
P_SET_OV(sat);
}, {
bool sat = false;
pd = (sat_sub<int16_t, uint16_t>(ps1, ps2, sat));
P_SET_OV(sat);
})
|