summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/rsp/vmudh.h
blob: 71c3a38f4fba05d1b38652e94f9e7e0e2578f18b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// license:BSD-3-Clause
// copyright-holders:Tyler J. Stachecki,Ryan Holtz

inline rsp_vec_t rsp_vmudh(rsp_vec_t vs, rsp_vec_t vt, rsp_vec_t *acc_md, rsp_vec_t *acc_hi)
{
	*acc_md = _mm_mullo_epi16(vs, vt);
	*acc_hi = _mm_mulhi_epi16(vs, vt);

	return sclamp_acc_to_mid(*acc_md, *acc_hi);
}