| 1 | // |
| 2 | // arch/x86_64/rsp/vmudh.h |
| 3 | // |
| 4 | // This file is subject to the terms and conditions defined in |
| 5 | // 'LICENSE', which is part of this source code package. |
| 6 | // |
| 7 | |
| 8 | #include "common.h" |
| 9 | |
| 10 | static inline __m128i rsp_vmudh(__m128i vs, __m128i vt, |
| 11 | __m128i *acc_md, __m128i *acc_hi) { |
| 12 | *acc_md = _mm_mullo_epi16(vs, vt); |
| 13 | *acc_hi = _mm_mulhi_epi16(vs, vt); |
| 14 | |
| 15 | return rsp_sclamp_acc_tomd(*acc_md, *acc_hi); |
| 16 | } |
| 17 |