cen64/arch/x86_64/rsp/vand.h
2015-01-02 23:51:20 -05:00

16 lines
403 B
C

//
// arch/x86_64/rsp/vand.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_vand_vnand(uint32_t iw, __m128i vs, __m128i vt) {
__m128i vmask = _mm_load_si128((__m128i *) rsp_vlogic_mask[iw & 0x1]);
__m128i vd = _mm_and_si128(vs, vt);
return _mm_xor_si128(vd, vmask);
}