16 #include <freerdp/config.h>
18 #include <freerdp/types.h>
19 #include <freerdp/primitives.h>
21 #include "prim_internal.h"
22 #include "prim_sign.h"
27 static pstatus_t general_sign_16s(
const INT16* pSrc, INT16* pDst, UINT32 len)
32 *pDst++ = (src < 0) ? (-1) : ((src > 0) ? 1 : 0);
35 return PRIMITIVES_SUCCESS;
39 void primitives_init_sign(
primitives_t* WINPR_RESTRICT prims)
42 prims->sign_16s = general_sign_16s;
45 void primitives_init_sign_opt(
primitives_t* WINPR_RESTRICT prims)
47 primitives_init_sign_ssse3(prims);