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

inline rsp_vec_t vec_vdivh(UINT32 src, UINT32 e, UINT32 dest, UINT32 de)
{
	// Get the element from VT.
	m_div_in = m_v[src].s[e & 0x7];

	// Write out the upper part of the result.
	m_v[dest].s[de & 0x7] = m_div_out;
	return vec_load_unshuffled_operand(m_v[dest].s);
}