git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@550 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-01 08:05:32 +00:00
parent 3b7b2f662b
commit 22e75cc25d
7 changed files with 292 additions and 279 deletions

View File

@@ -6,9 +6,9 @@
#include <mmintrin.h>
#define DO_MMX_INTRINSIC(intrin, _ty, _rty, _tyn) \
__m64 m = intrin(*(__m64*)&a->un._ty, *(__m64*)&b->un._ty); \
__m64 m = intrin(*(__m64*)&a->un._ty, *(__m64*)&b->un._ty); \
struct _tyn* t = (struct _tyn*)&m; \
out->un._rty = *t;
out->un._rty = *t;
static void mmx_add_u8(MwLLVec* a, MwLLVec* b, MwLLVec* out) {
DO_MMX_INTRINSIC(_m_paddusb, u8, u8, _MwLLVecDataU8x8);