16 #include <freerdp/config.h>
18 #include <freerdp/types.h>
19 #include <freerdp/primitives.h>
21 #include "prim_internal.h"
22 #include "prim_andor.h"
27 static pstatus_t general_andC_32u(
const UINT32* pSrc, UINT32 val, UINT32* pDst, INT32 len)
30 return PRIMITIVES_SUCCESS;
33 *pDst++ = *pSrc++ & val;
35 return PRIMITIVES_SUCCESS;
41 static pstatus_t general_orC_32u(
const UINT32* pSrc, UINT32 val, UINT32* pDst, INT32 len)
44 return PRIMITIVES_SUCCESS;
47 *pDst++ = *pSrc++ | val;
49 return PRIMITIVES_SUCCESS;
53 void primitives_init_andor(
primitives_t* WINPR_RESTRICT prims)
56 prims->andC_32u = general_andC_32u;
57 prims->orC_32u = general_orC_32u;
60 void primitives_init_andor_opt(
primitives_t* WINPR_RESTRICT prims)
62 primitives_init_andor_sse3(prims);