59 round = bits? 1 << (bits-1) : 0;
61 for (i=-len, j=len-1; i<0; i++, j--) {
66 dst[i] =
av_clip_int16_c(((((int64_t)s0*wj - (int64_t)s1*wi + 0x40000000) >> 31) + round) >> bits);
67 dst[j] =
av_clip_int16_c(((((int64_t)s0*wi + (int64_t)s1*wj + 0x40000000) >> 31) + round) >> bits);
81 for (i=-len, j=len-1; i<0; i++, j--) {
86 dst[i] = ((int64_t)s0*wj - (int64_t)s1*wi + 0x40000000) >> 31;
87 dst[j] = ((int64_t)s0*wi + (int64_t)s1*wj + 0x40000000) >> 31;