mirror of
https://github.com/n64dev/cen64.git
synced 2025-04-02 10:31:54 -04:00
17 lines
400 B
C
17 lines
400 B
C
//
|
|
// arch/x86_64/rsp/vmudh.h
|
|
//
|
|
// This file is subject to the terms and conditions defined in
|
|
// 'LICENSE', which is part of this source code package.
|
|
//
|
|
|
|
#include "common.h"
|
|
|
|
static inline __m128i rsp_vmudh(__m128i vs, __m128i vt,
|
|
__m128i *acc_md, __m128i *acc_hi) {
|
|
*acc_md = _mm_mullo_epi16(vs, vt);
|
|
*acc_hi = _mm_mulhi_epi16(vs, vt);
|
|
|
|
return rsp_sclamp_acc_tomd(*acc_md, *acc_hi);
|
|
}
|
|
|