typedef uint16_t orc_uint16;
typedef uint32_t orc_uint32;
typedef uint64_t orc_uint64;
+#define ORC_UINT64_C(x) UINT64_C(x)
#elif defined(_MSC_VER)
typedef signed __int8 orc_int8;
typedef signed __int16 orc_int16;
typedef unsigned __int16 orc_uint16;
typedef unsigned __int32 orc_uint32;
typedef unsigned __int64 orc_uint64;
+#define ORC_UINT64_C(x) (x##Ui64)
#else
#include <limits.h>
typedef signed char orc_int8;
#if INT_MAX == LONG_MAX
typedef long long orc_int64;
typedef unsigned long long orc_uint64;
+#define ORC_UINT64_C(x) (x##ULL)
#else
typedef long orc_int64;
typedef unsigned long orc_uint64;
+#define ORC_UINT64_C(x) (x##UL)
#endif
#endif
typedef union
orc_int64 i;
double f;
orc_int32 x2[2];
+ float x2f[2];
orc_int16 x4[4];
} orc_union64;
#endif
#define ORC_CLAMP_UL(x) ORC_CLAMP(x,ORC_UL_MIN,ORC_UL_MAX)
#define ORC_SWAP_W(x) ((((x)&0xff)<<8) | (((x)&0xff00)>>8))
#define ORC_SWAP_L(x) ((((x)&0xff)<<24) | (((x)&0xff00)<<8) | (((x)&0xff0000)>>8) | (((x)&0xff000000)>>24))
-#define ORC_SWAP_Q(x) ((((x)&0xffULL)<<56) | (((x)&0xff00ULL)<<40) | (((x)&0xff0000ULL)<<24) | (((x)&0xff000000ULL)<<8) | (((x)&0xff00000000ULL)>>8) | (((x)&0xff0000000000ULL)>>24) | (((x)&0xff000000000000ULL)>>40) | (((x)&0xff00000000000000ULL)>>56))
+#define ORC_SWAP_Q(x) ((((x)&ORC_UINT64_C(0xff))<<56) | (((x)&ORC_UINT64_C(0xff00))<<40) | (((x)&ORC_UINT64_C(0xff0000))<<24) | (((x)&ORC_UINT64_C(0xff000000))<<8) | (((x)&ORC_UINT64_C(0xff00000000))>>8) | (((x)&ORC_UINT64_C(0xff0000000000))>>24) | (((x)&ORC_UINT64_C(0xff000000000000))>>40) | (((x)&ORC_UINT64_C(0xff00000000000000))>>56))
#define ORC_PTR_OFFSET(ptr,offset) ((void *)(((unsigned char *)(ptr)) + (offset)))
#define ORC_DENORMAL(x) ((x) & ((((x)&0x7f800000) == 0) ? 0xff800000 : 0xffffffff))
#define ORC_ISNAN(x) ((((x)&0x7f800000) == 0x7f800000) && (((x)&0x007fffff) != 0))
-#define ORC_DENORMAL_DOUBLE(x) ((x) & ((((x)&0x7ff0000000000000ULL) == 0) ? 0xfff0000000000000ULL : 0xffffffffffffffffULL))
-#define ORC_ISNAN_DOUBLE(x) ((((x)&0x7ff0000000000000ULL) == 0x7ff0000000000000ULL) && (((x)&0x000fffffffffffffULL) != 0))
+#define ORC_DENORMAL_DOUBLE(x) ((x) & ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == 0) ? ORC_UINT64_C(0xfff0000000000000) : ORC_UINT64_C(0xffffffffffffffff)))
+#define ORC_ISNAN_DOUBLE(x) ((((x)&ORC_UINT64_C(0x7ff0000000000000)) == ORC_UINT64_C(0x7ff0000000000000)) && (((x)&ORC_UINT64_C(0x000fffffffffffff)) != 0))
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define ORC_RESTRICT restrict
#elif defined(__GNUC__) && __GNUC__ >= 4
orc_program_set_backup_function (p, _backup_cogorc_memcpy_2d);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 1, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_append_2 (p, "copyb", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
ORC_VAR_D1);
_backup_cogorc_downsample_horiz_cosite_1tap);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 2, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_append_2 (p, "select0wb", 0, ORC_VAR_D1, ORC_VAR_S1,
ORC_VAR_D1, ORC_VAR_D1);
orc_program_add_source (p, 2, "s1");
orc_program_add_source (p, 2, "s2");
orc_program_add_constant (p, 4, 0x00000002, "c1");
- orc_program_add_constant (p, 0, 0x00000002, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 1, "t1");
orc_program_add_temporary (p, 1, "t2");
orc_program_add_temporary (p, 1, "t3");
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 2, "s1");
orc_program_add_source (p, 2, "s2");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 1, "t2");
orc_program_add_temporary (p, 1, "t3");
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 1, "s1");
orc_program_add_source (p, 1, "s2");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_append_2 (p, "avgub", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_S2,
ORC_VAR_D1);
orc_program_add_source (p, 1, "s2");
orc_program_add_source (p, 1, "s3");
orc_program_add_constant (p, 4, 0x00000002, "c1");
- orc_program_add_constant (p, 0, 0x00000002, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
orc_program_add_temporary (p, 2, "t3");
orc_program_add_constant (p, 4, 0x0000001a, "c1");
orc_program_add_constant (p, 4, 0x00000006, "c2");
orc_program_add_constant (p, 4, 0x00000020, "c3");
- orc_program_add_constant (p, 0, 0x00000006, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
orc_program_add_temporary (p, 2, "t3");
/* 1: copyb */
var35 = var33;
/* 2: mergebw */
- var34.i = ((orc_uint8) var35) | ((orc_uint8) var35 << 8);
+ var34.i = ((orc_uint8) var35 & 0x00ff) | ((orc_uint8) var35 << 8);
/* 3: storew */
ptr0[i] = var34;
}
/* 1: copyb */
var35 = var33;
/* 2: mergebw */
- var34.i = ((orc_uint8) var35) | ((orc_uint8) var35 << 8);
+ var34.i = ((orc_uint8) var35 & 0x00ff) | ((orc_uint8) var35 << 8);
/* 3: storew */
ptr0[i] = var34;
}
_backup_cogorc_upsample_horiz_cosite_1tap);
orc_program_add_destination (p, 2, "d1");
orc_program_add_source (p, 1, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 1, "t1");
orc_program_append_2 (p, "copyb", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
/* 3: avgub */
var38 = ((orc_uint8) var37 + (orc_uint8) var35 + 1) >> 1;
/* 4: mergebw */
- var36.i = ((orc_uint8) var37) | ((orc_uint8) var38 << 8);
+ var36.i = ((orc_uint8) var37 & 0x00ff) | ((orc_uint8) var38 << 8);
/* 5: storew */
ptr0[i] = var36;
}
/* 3: avgub */
var38 = ((orc_uint8) var37 + (orc_uint8) var35 + 1) >> 1;
/* 4: mergebw */
- var36.i = ((orc_uint8) var37) | ((orc_uint8) var38 << 8);
+ var36.i = ((orc_uint8) var37 & 0x00ff) | ((orc_uint8) var38 << 8);
/* 5: storew */
ptr0[i] = var36;
}
orc_program_add_destination (p, 2, "d1");
orc_program_add_source (p, 1, "s1");
orc_program_add_source (p, 1, "s2");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 1, "t1");
orc_program_add_temporary (p, 1, "t2");
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 1, "s1");
orc_program_add_source (p, 1, "s2");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_append_2 (p, "avgub", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_S2,
ORC_VAR_D1);
orc_program_set_backup_function (p, _backup_orc_unpack_yuyv_y);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 2, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_append_2 (p, "select0wb", 0, ORC_VAR_D1, ORC_VAR_S1,
ORC_VAR_D1, ORC_VAR_D1);
orc_program_set_backup_function (p, _backup_orc_unpack_yuyv_u);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "select0lw", 0, ORC_VAR_T1, ORC_VAR_S1,
orc_program_set_backup_function (p, _backup_orc_unpack_yuyv_v);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "select1lw", 0, ORC_VAR_T1, ORC_VAR_S1,
/* 4: loadb */
var38 = ptr5[i];
/* 5: mergebw */
- var44.i = ((orc_uint8) var42) | ((orc_uint8) var38 << 8);
+ var44.i = ((orc_uint8) var42 & 0x00ff) | ((orc_uint8) var38 << 8);
/* 6: loadb */
var39 = ptr6[i];
/* 7: mergebw */
- var45.i = ((orc_uint8) var43) | ((orc_uint8) var39 << 8);
+ var45.i = ((orc_uint8) var43 & 0x00ff) | ((orc_uint8) var39 << 8);
/* 8: mergewl */
- var40.i = ((orc_uint16) var44.i) | ((orc_uint16) var45.i << 16);
+ var40.i =
+ ((orc_uint16) var44.i & 0x0000ffff) | ((orc_uint16) var45.i << 16);
/* 9: storel */
ptr0[i] = var40;
}
/* 4: loadb */
var38 = ptr5[i];
/* 5: mergebw */
- var44.i = ((orc_uint8) var42) | ((orc_uint8) var38 << 8);
+ var44.i = ((orc_uint8) var42 & 0x00ff) | ((orc_uint8) var38 << 8);
/* 6: loadb */
var39 = ptr6[i];
/* 7: mergebw */
- var45.i = ((orc_uint8) var43) | ((orc_uint8) var39 << 8);
+ var45.i = ((orc_uint8) var43 & 0x00ff) | ((orc_uint8) var39 << 8);
/* 8: mergewl */
- var40.i = ((orc_uint16) var44.i) | ((orc_uint16) var45.i << 16);
+ var40.i =
+ ((orc_uint16) var44.i & 0x0000ffff) | ((orc_uint16) var45.i << 16);
/* 9: storel */
ptr0[i] = var40;
}
orc_program_add_source (p, 2, "s1");
orc_program_add_source (p, 1, "s2");
orc_program_add_source (p, 1, "s3");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 1, "t1");
orc_program_add_temporary (p, 1, "t2");
orc_program_add_temporary (p, 2, "t3");
orc_program_set_backup_function (p, _backup_orc_unpack_uyvy_y);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 2, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_append_2 (p, "select1wb", 0, ORC_VAR_D1, ORC_VAR_S1,
ORC_VAR_D1, ORC_VAR_D1);
orc_program_set_backup_function (p, _backup_orc_unpack_uyvy_u);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "select0lw", 0, ORC_VAR_T1, ORC_VAR_S1,
orc_program_set_backup_function (p, _backup_orc_unpack_uyvy_v);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "select1lw", 0, ORC_VAR_T1, ORC_VAR_S1,
/* 4: loadb */
var38 = ptr5[i];
/* 5: mergebw */
- var44.i = ((orc_uint8) var38) | ((orc_uint8) var42 << 8);
+ var44.i = ((orc_uint8) var38 & 0x00ff) | ((orc_uint8) var42 << 8);
/* 6: loadb */
var39 = ptr6[i];
/* 7: mergebw */
- var45.i = ((orc_uint8) var39) | ((orc_uint8) var43 << 8);
+ var45.i = ((orc_uint8) var39 & 0x00ff) | ((orc_uint8) var43 << 8);
/* 8: mergewl */
- var40.i = ((orc_uint16) var44.i) | ((orc_uint16) var45.i << 16);
+ var40.i =
+ ((orc_uint16) var44.i & 0x0000ffff) | ((orc_uint16) var45.i << 16);
/* 9: storel */
ptr0[i] = var40;
}
/* 4: loadb */
var38 = ptr5[i];
/* 5: mergebw */
- var44.i = ((orc_uint8) var38) | ((orc_uint8) var42 << 8);
+ var44.i = ((orc_uint8) var38 & 0x00ff) | ((orc_uint8) var42 << 8);
/* 6: loadb */
var39 = ptr6[i];
/* 7: mergebw */
- var45.i = ((orc_uint8) var39) | ((orc_uint8) var43 << 8);
+ var45.i = ((orc_uint8) var39 & 0x00ff) | ((orc_uint8) var43 << 8);
/* 8: mergewl */
- var40.i = ((orc_uint16) var44.i) | ((orc_uint16) var45.i << 16);
+ var40.i =
+ ((orc_uint16) var44.i & 0x0000ffff) | ((orc_uint16) var45.i << 16);
/* 9: storel */
ptr0[i] = var40;
}
orc_program_add_source (p, 2, "s1");
orc_program_add_source (p, 1, "s2");
orc_program_add_source (p, 1, "s3");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 1, "t1");
orc_program_add_temporary (p, 1, "t2");
orc_program_add_temporary (p, 2, "t3");
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 2, "s1");
orc_program_add_constant (p, 4, 0x00000080, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "addw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_C1,
orc_program_add_destination (p, 2, "d1");
orc_program_add_source (p, 1, "s1");
orc_program_add_constant (p, 4, 0x00000080, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "convubw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
orc_program_set_name (p, "orc_splat_u8_ns");
orc_program_set_backup_function (p, _backup_orc_splat_u8_ns);
orc_program_add_destination (p, 1, "d1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_parameter (p, 1, "p1");
orc_program_append_2 (p, "copyb", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
orc_program_set_name (p, "orc_splat_s16_ns");
orc_program_set_backup_function (p, _backup_orc_splat_s16_ns);
orc_program_add_destination (p, 2, "d1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_parameter (p, 2, "p1");
orc_program_append_2 (p, "copyw", 0, ORC_VAR_D1, ORC_VAR_P1, ORC_VAR_D1,
orc_program_add_source (p, 1, "s1");
orc_program_add_source (p, 1, "s2");
orc_program_add_constant (p, 4, 0x00000006, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_parameter (p, 2, "p1");
orc_program_add_parameter (p, 2, "p2");
orc_program_add_parameter (p, 2, "p3");
orc_program_add_constant (p, 4, 0x00000010, "c1");
orc_program_add_constant (p, 4, 0x00000080, "c2");
orc_program_add_constant (p, 4, 0x00000008, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_parameter (p, 2, "p1");
orc_program_add_parameter (p, 2, "p2");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_constant (p, 4, 0x00000010, "c1");
orc_program_add_constant (p, 4, 0x00000080, "c2");
orc_program_add_constant (p, 4, 0x00000008, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_parameter (p, 2, "p1");
orc_program_add_parameter (p, 2, "p2");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_source (p, 1, "s2");
orc_program_add_source (p, 1, "s3");
orc_program_add_constant (p, 4, 0x00000006, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_parameter (p, 2, "p1");
orc_program_add_parameter (p, 2, "p2");
orc_program_add_parameter (p, 2, "p3");
orc_program_add_constant (p, 4, 0x00000010, "c1");
orc_program_add_constant (p, 4, 0x00000080, "c2");
orc_program_add_constant (p, 4, 0x00000008, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_parameter (p, 2, "p1");
orc_program_add_parameter (p, 2, "p2");
orc_program_add_parameter (p, 2, "p3");
orc_program_add_source (p, 1, "s1");
orc_program_add_source (p, 1, "s2");
orc_program_add_source (p, 1, "s3");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_parameter (p, 2, "p1");
orc_program_add_parameter (p, 2, "p2");
orc_program_add_parameter (p, 2, "p3");
orc_program_add_source (p, 1, "s1");
orc_program_add_source (p, 1, "s2");
orc_program_add_source (p, 1, "s3");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_parameter (p, 2, "p1");
orc_program_add_parameter (p, 2, "p2");
orc_program_add_parameter (p, 2, "p3");
/* 1: loadb */
var35 = ptr5[i];
/* 2: mergebw */
- var39.i = ((orc_uint8) var34) | ((orc_uint8) var35 << 8);
+ var39.i = ((orc_uint8) var34 & 0x00ff) | ((orc_uint8) var35 << 8);
/* 3: loadb */
var36 = ptr6[i];
/* 5: mergebw */
- var40.i = ((orc_uint8) var36) | ((orc_uint8) var37 << 8);
+ var40.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8);
/* 6: mergewl */
- var38.i = ((orc_uint16) var39.i) | ((orc_uint16) var40.i << 16);
+ var38.i =
+ ((orc_uint16) var39.i & 0x0000ffff) | ((orc_uint16) var40.i << 16);
/* 7: storel */
ptr0[i] = var38;
}
/* 1: loadb */
var35 = ptr5[i];
/* 2: mergebw */
- var39.i = ((orc_uint8) var34) | ((orc_uint8) var35 << 8);
+ var39.i = ((orc_uint8) var34 & 0x00ff) | ((orc_uint8) var35 << 8);
/* 3: loadb */
var36 = ptr6[i];
/* 5: mergebw */
- var40.i = ((orc_uint8) var36) | ((orc_uint8) var37 << 8);
+ var40.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8);
/* 6: mergewl */
- var38.i = ((orc_uint16) var39.i) | ((orc_uint16) var40.i << 16);
+ var38.i =
+ ((orc_uint16) var39.i & 0x0000ffff) | ((orc_uint16) var40.i << 16);
/* 7: storel */
ptr0[i] = var38;
}
orc_program_add_source (p, 1, "s1");
orc_program_add_source (p, 1, "s2");
orc_program_add_source (p, 1, "s3");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_parameter (p, 1, "p1");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
/* 1: loadb */
var35 = ptr4[i];
/* 2: mergebw */
- var39.i = ((orc_uint8) var34) | ((orc_uint8) var35 << 8);
+ var39.i = ((orc_uint8) var34 & 0x00ff) | ((orc_uint8) var35 << 8);
/* 3: loadb */
var36 = ptr5[i];
/* 4: loadb */
var37 = ptr6[i];
/* 5: mergebw */
- var40.i = ((orc_uint8) var36) | ((orc_uint8) var37 << 8);
+ var40.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8);
/* 6: mergewl */
- var38.i = ((orc_uint16) var39.i) | ((orc_uint16) var40.i << 16);
+ var38.i =
+ ((orc_uint16) var39.i & 0x0000ffff) | ((orc_uint16) var40.i << 16);
/* 7: storel */
ptr0[i] = var38;
}
/* 1: loadb */
var35 = ptr4[i];
/* 2: mergebw */
- var39.i = ((orc_uint8) var34) | ((orc_uint8) var35 << 8);
+ var39.i = ((orc_uint8) var34 & 0x00ff) | ((orc_uint8) var35 << 8);
/* 3: loadb */
var36 = ptr5[i];
/* 4: loadb */
var37 = ptr6[i];
/* 5: mergebw */
- var40.i = ((orc_uint8) var36) | ((orc_uint8) var37 << 8);
+ var40.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8);
/* 6: mergewl */
- var38.i = ((orc_uint16) var39.i) | ((orc_uint16) var40.i << 16);
+ var38.i =
+ ((orc_uint16) var39.i & 0x0000ffff) | ((orc_uint16) var40.i << 16);
/* 7: storel */
ptr0[i] = var38;
}
orc_program_add_source (p, 1, "s1");
orc_program_add_source (p, 1, "s2");
orc_program_add_source (p, 1, "s3");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_parameter (p, 1, "p1");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
orc_program_add_source (p, 1, "s1");
orc_program_add_source (p, 1, "s2");
orc_program_add_constant (p, 4, 0x00000008, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_parameter (p, 2, "p1");
orc_program_add_parameter (p, 2, "p2");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_source (p, 1, "s4");
orc_program_add_constant (p, 4, 0x00000020, "c1");
orc_program_add_constant (p, 4, 0x00000006, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_parameter (p, 2, "p1");
orc_program_add_parameter (p, 2, "p2");
orc_program_add_parameter (p, 2, "p3");
orc_program_set_backup_function (p, _backup_cogorc_unpack_axyz_0);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "select0lw", 0, ORC_VAR_T1, ORC_VAR_S1,
orc_program_set_backup_function (p, _backup_cogorc_unpack_axyz_1);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "select0lw", 0, ORC_VAR_T1, ORC_VAR_S1,
orc_program_set_backup_function (p, _backup_cogorc_unpack_axyz_2);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "select1lw", 0, ORC_VAR_T1, ORC_VAR_S1,
orc_program_set_backup_function (p, _backup_cogorc_unpack_axyz_3);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "select1lw", 0, ORC_VAR_T1, ORC_VAR_S1,
orc_program_set_backup_function (p, _backup_cogorc_resample_horiz_1tap);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 1, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_parameter (p, 4, "p1");
orc_program_add_parameter (p, 4, "p2");
orc_program_set_backup_function (p, _backup_cogorc_resample_horiz_2tap);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 1, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_parameter (p, 4, "p1");
orc_program_add_parameter (p, 4, "p2");
/* 1: loadb */
var34 = ptr7[i];
/* 2: mergebw */
- var39.i = ((orc_uint8) var33) | ((orc_uint8) var34 << 8);
+ var39.i = ((orc_uint8) var33 & 0x00ff) | ((orc_uint8) var34 << 8);
/* 3: loadw */
var35 = ptr4[i];
/* 4: mergebw */
- var36.x2[0] = ((orc_uint8) var39.x2[0]) | ((orc_uint8) var35.x2[0] << 8);
- var36.x2[1] = ((orc_uint8) var39.x2[1]) | ((orc_uint8) var35.x2[1] << 8);
+ var36.x2[0] =
+ ((orc_uint8) var39.x2[0] & 0x00ff) | ((orc_uint8) var35.x2[0] << 8);
+ var36.x2[1] =
+ ((orc_uint8) var39.x2[1] & 0x00ff) | ((orc_uint8) var35.x2[1] << 8);
/* 5: storel */
ptr0[i] = var36;
/* 6: loadw */
var37 = ptr5[i];
/* 7: mergebw */
- var38.x2[0] = ((orc_uint8) var39.x2[0]) | ((orc_uint8) var37.x2[0] << 8);
- var38.x2[1] = ((orc_uint8) var39.x2[1]) | ((orc_uint8) var37.x2[1] << 8);
+ var38.x2[0] =
+ ((orc_uint8) var39.x2[0] & 0x00ff) | ((orc_uint8) var37.x2[0] << 8);
+ var38.x2[1] =
+ ((orc_uint8) var39.x2[1] & 0x00ff) | ((orc_uint8) var37.x2[1] << 8);
/* 8: storel */
ptr1[i] = var38;
}
/* 1: loadb */
var34 = ptr7[i];
/* 2: mergebw */
- var39.i = ((orc_uint8) var33) | ((orc_uint8) var34 << 8);
+ var39.i = ((orc_uint8) var33 & 0x00ff) | ((orc_uint8) var34 << 8);
/* 3: loadw */
var35 = ptr4[i];
/* 4: mergebw */
- var36.x2[0] = ((orc_uint8) var39.x2[0]) | ((orc_uint8) var35.x2[0] << 8);
- var36.x2[1] = ((orc_uint8) var39.x2[1]) | ((orc_uint8) var35.x2[1] << 8);
+ var36.x2[0] =
+ ((orc_uint8) var39.x2[0] & 0x00ff) | ((orc_uint8) var35.x2[0] << 8);
+ var36.x2[1] =
+ ((orc_uint8) var39.x2[1] & 0x00ff) | ((orc_uint8) var35.x2[1] << 8);
/* 5: storel */
ptr0[i] = var36;
/* 6: loadw */
var37 = ptr5[i];
/* 7: mergebw */
- var38.x2[0] = ((orc_uint8) var39.x2[0]) | ((orc_uint8) var37.x2[0] << 8);
- var38.x2[1] = ((orc_uint8) var39.x2[1]) | ((orc_uint8) var37.x2[1] << 8);
+ var38.x2[0] =
+ ((orc_uint8) var39.x2[0] & 0x00ff) | ((orc_uint8) var37.x2[0] << 8);
+ var38.x2[1] =
+ ((orc_uint8) var39.x2[1] & 0x00ff) | ((orc_uint8) var37.x2[1] << 8);
/* 8: storel */
ptr1[i] = var38;
}
orc_program_add_source (p, 2, "s2");
orc_program_add_source (p, 1, "s3");
orc_program_add_source (p, 1, "s4");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "mergebw", 0, ORC_VAR_T1, ORC_VAR_S3, ORC_VAR_S4,
/* 1: loadb */
var34 = ptr7[i];
/* 2: mergebw */
- var39.i = ((orc_uint8) var33) | ((orc_uint8) var34 << 8);
+ var39.i = ((orc_uint8) var33 & 0x00ff) | ((orc_uint8) var34 << 8);
/* 3: loadw */
var35 = ptr4[i];
/* 4: mergebw */
- var36.x2[0] = ((orc_uint8) var35.x2[0]) | ((orc_uint8) var39.x2[0] << 8);
- var36.x2[1] = ((orc_uint8) var35.x2[1]) | ((orc_uint8) var39.x2[1] << 8);
+ var36.x2[0] =
+ ((orc_uint8) var35.x2[0] & 0x00ff) | ((orc_uint8) var39.x2[0] << 8);
+ var36.x2[1] =
+ ((orc_uint8) var35.x2[1] & 0x00ff) | ((orc_uint8) var39.x2[1] << 8);
/* 5: storel */
ptr0[i] = var36;
/* 6: loadw */
var37 = ptr5[i];
/* 7: mergebw */
- var38.x2[0] = ((orc_uint8) var37.x2[0]) | ((orc_uint8) var39.x2[0] << 8);
- var38.x2[1] = ((orc_uint8) var37.x2[1]) | ((orc_uint8) var39.x2[1] << 8);
+ var38.x2[0] =
+ ((orc_uint8) var37.x2[0] & 0x00ff) | ((orc_uint8) var39.x2[0] << 8);
+ var38.x2[1] =
+ ((orc_uint8) var37.x2[1] & 0x00ff) | ((orc_uint8) var39.x2[1] << 8);
/* 8: storel */
ptr1[i] = var38;
}
/* 1: loadb */
var34 = ptr7[i];
/* 2: mergebw */
- var39.i = ((orc_uint8) var33) | ((orc_uint8) var34 << 8);
+ var39.i = ((orc_uint8) var33 & 0x00ff) | ((orc_uint8) var34 << 8);
/* 3: loadw */
var35 = ptr4[i];
/* 4: mergebw */
- var36.x2[0] = ((orc_uint8) var35.x2[0]) | ((orc_uint8) var39.x2[0] << 8);
- var36.x2[1] = ((orc_uint8) var35.x2[1]) | ((orc_uint8) var39.x2[1] << 8);
+ var36.x2[0] =
+ ((orc_uint8) var35.x2[0] & 0x00ff) | ((orc_uint8) var39.x2[0] << 8);
+ var36.x2[1] =
+ ((orc_uint8) var35.x2[1] & 0x00ff) | ((orc_uint8) var39.x2[1] << 8);
/* 5: storel */
ptr0[i] = var36;
/* 6: loadw */
var37 = ptr5[i];
/* 7: mergebw */
- var38.x2[0] = ((orc_uint8) var37.x2[0]) | ((orc_uint8) var39.x2[0] << 8);
- var38.x2[1] = ((orc_uint8) var37.x2[1]) | ((orc_uint8) var39.x2[1] << 8);
+ var38.x2[0] =
+ ((orc_uint8) var37.x2[0] & 0x00ff) | ((orc_uint8) var39.x2[0] << 8);
+ var38.x2[1] =
+ ((orc_uint8) var37.x2[1] & 0x00ff) | ((orc_uint8) var39.x2[1] << 8);
/* 8: storel */
ptr1[i] = var38;
}
orc_program_add_source (p, 2, "s2");
orc_program_add_source (p, 1, "s3");
orc_program_add_source (p, 1, "s4");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "mergebw", 0, ORC_VAR_T1, ORC_VAR_S3, ORC_VAR_S4,
/* 1: loadupdb */
var43 = ptr7[i >> 1];
/* 2: mergebw */
- var44.i = ((orc_uint8) var42) | ((orc_uint8) var43 << 8);
+ var44.i = ((orc_uint8) var42 & 0x00ff) | ((orc_uint8) var43 << 8);
/* 4: loadb */
var37 = ptr4[i];
/* 5: mergebw */
- var45.i = ((orc_uint8) var36) | ((orc_uint8) var37 << 8);
+ var45.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8);
/* 6: mergewl */
- var38.i = ((orc_uint16) var45.i) | ((orc_uint16) var44.i << 16);
+ var38.i =
+ ((orc_uint16) var45.i & 0x0000ffff) | ((orc_uint16) var44.i << 16);
/* 7: storel */
ptr0[i] = var38;
/* 9: loadb */
var40 = ptr5[i];
/* 10: mergebw */
- var46.i = ((orc_uint8) var39) | ((orc_uint8) var40 << 8);
+ var46.i = ((orc_uint8) var39 & 0x00ff) | ((orc_uint8) var40 << 8);
/* 11: mergewl */
- var41.i = ((orc_uint16) var46.i) | ((orc_uint16) var44.i << 16);
+ var41.i =
+ ((orc_uint16) var46.i & 0x0000ffff) | ((orc_uint16) var44.i << 16);
/* 12: storel */
ptr1[i] = var41;
}
/* 1: loadupdb */
var43 = ptr7[i >> 1];
/* 2: mergebw */
- var44.i = ((orc_uint8) var42) | ((orc_uint8) var43 << 8);
+ var44.i = ((orc_uint8) var42 & 0x00ff) | ((orc_uint8) var43 << 8);
/* 4: loadb */
var37 = ptr4[i];
/* 5: mergebw */
- var45.i = ((orc_uint8) var36) | ((orc_uint8) var37 << 8);
+ var45.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8);
/* 6: mergewl */
- var38.i = ((orc_uint16) var45.i) | ((orc_uint16) var44.i << 16);
+ var38.i =
+ ((orc_uint16) var45.i & 0x0000ffff) | ((orc_uint16) var44.i << 16);
/* 7: storel */
ptr0[i] = var38;
/* 9: loadb */
var40 = ptr5[i];
/* 10: mergebw */
- var46.i = ((orc_uint8) var39) | ((orc_uint8) var40 << 8);
+ var46.i = ((orc_uint8) var39 & 0x00ff) | ((orc_uint8) var40 << 8);
/* 11: mergewl */
- var41.i = ((orc_uint16) var46.i) | ((orc_uint16) var44.i << 16);
+ var41.i =
+ ((orc_uint16) var46.i & 0x0000ffff) | ((orc_uint16) var44.i << 16);
/* 12: storel */
ptr1[i] = var41;
}
orc_program_add_source (p, 1, "s3");
orc_program_add_source (p, 1, "s4");
orc_program_add_constant (p, 1, 0x000000ff, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
orc_program_add_temporary (p, 1, "t3");
orc_program_add_destination (p, 1, "d4");
orc_program_add_source (p, 4, "s1");
orc_program_add_source (p, 4, "s2");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
orc_program_add_temporary (p, 2, "t3");
orc_program_set_backup_function (p, _backup_cogorc_convert_UYVY_YUY2);
orc_program_add_destination (p, 4, "d1");
orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_append_2 (p, "swapw", 1, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
ORC_VAR_D1);
orc_program_add_destination (p, 1, "d1");
orc_program_add_destination (p, 1, "d2");
orc_program_add_source (p, 1, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_append_2 (p, "copyb", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_D1,
ORC_VAR_D1);
orc_program_add_destination (p, 2, "d1");
orc_program_add_destination (p, 2, "d2");
orc_program_add_source (p, 1, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "splatbw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
orc_program_set_backup_function (p, _backup_cogorc_planar_chroma_422_444);
orc_program_add_destination (p, 2, "d1");
orc_program_add_source (p, 1, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "splatbw", 0, ORC_VAR_T1, ORC_VAR_S1, ORC_VAR_D1,
orc_program_set_backup_function (p, _backup_cogorc_planar_chroma_444_422);
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 2, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 1, "t1");
orc_program_add_temporary (p, 1, "t2");
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 2, "s1");
orc_program_add_source (p, 2, "s2");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 1, "t2");
orc_program_add_temporary (p, 1, "t3");
orc_program_add_destination (p, 1, "d1");
orc_program_add_source (p, 1, "s1");
orc_program_add_source (p, 1, "s2");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_append_2 (p, "avgub", 0, ORC_VAR_D1, ORC_VAR_S1, ORC_VAR_S2,
ORC_VAR_D1);
var39.x2[1] = (var36.x2[1] >> 8) & 0xff;
var40.x2[1] = var36.x2[1] & 0xff;
/* 3: mergebw */
- var41.x2[0] = ((orc_uint8) var37.x2[0]) | ((orc_uint8) var40.x2[0] << 8);
- var41.x2[1] = ((orc_uint8) var37.x2[1]) | ((orc_uint8) var40.x2[1] << 8);
+ var41.x2[0] =
+ ((orc_uint8) var37.x2[0] & 0x00ff) | ((orc_uint8) var40.x2[0] << 8);
+ var41.x2[1] =
+ ((orc_uint8) var37.x2[1] & 0x00ff) | ((orc_uint8) var40.x2[1] << 8);
/* 4: mergewl */
- var42.i = ((orc_uint16) var39.i) | ((orc_uint16) var39.i << 16);
+ var42.i =
+ ((orc_uint16) var39.i & 0x0000ffff) | ((orc_uint16) var39.i << 16);
/* 5: mergewl */
var38.x2[0] =
- ((orc_uint16) var41.x2[0]) | ((orc_uint16) var42.x2[0] << 16);
+ ((orc_uint16) var41.x2[0] & 0x0000ffff) | ((orc_uint16) var42.
+ x2[0] << 16);
var38.x2[1] =
- ((orc_uint16) var41.x2[1]) | ((orc_uint16) var42.x2[1] << 16);
+ ((orc_uint16) var41.x2[1] & 0x0000ffff) | ((orc_uint16) var42.
+ x2[1] << 16);
/* 6: storeq */
ptr0[i] = var38;
}
var39.x2[1] = (var36.x2[1] >> 8) & 0xff;
var40.x2[1] = var36.x2[1] & 0xff;
/* 3: mergebw */
- var41.x2[0] = ((orc_uint8) var37.x2[0]) | ((orc_uint8) var40.x2[0] << 8);
- var41.x2[1] = ((orc_uint8) var37.x2[1]) | ((orc_uint8) var40.x2[1] << 8);
+ var41.x2[0] =
+ ((orc_uint8) var37.x2[0] & 0x00ff) | ((orc_uint8) var40.x2[0] << 8);
+ var41.x2[1] =
+ ((orc_uint8) var37.x2[1] & 0x00ff) | ((orc_uint8) var40.x2[1] << 8);
/* 4: mergewl */
- var42.i = ((orc_uint16) var39.i) | ((orc_uint16) var39.i << 16);
+ var42.i =
+ ((orc_uint16) var39.i & 0x0000ffff) | ((orc_uint16) var39.i << 16);
/* 5: mergewl */
var38.x2[0] =
- ((orc_uint16) var41.x2[0]) | ((orc_uint16) var42.x2[0] << 16);
+ ((orc_uint16) var41.x2[0] & 0x0000ffff) | ((orc_uint16) var42.
+ x2[0] << 16);
var38.x2[1] =
- ((orc_uint16) var41.x2[1]) | ((orc_uint16) var42.x2[1] << 16);
+ ((orc_uint16) var41.x2[1] & 0x0000ffff) | ((orc_uint16) var42.
+ x2[1] << 16);
/* 6: storeq */
ptr0[i] = var38;
}
orc_program_add_destination (p, 8, "d1");
orc_program_add_source (p, 4, "s1");
orc_program_add_constant (p, 2, 0x000000ff, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
orc_program_add_temporary (p, 4, "t3");
var39.x2[1] = (var36.x2[1] >> 8) & 0xff;
var40.x2[1] = var36.x2[1] & 0xff;
/* 3: mergebw */
- var41.x2[0] = ((orc_uint8) var37.x2[0]) | ((orc_uint8) var39.x2[0] << 8);
- var41.x2[1] = ((orc_uint8) var37.x2[1]) | ((orc_uint8) var39.x2[1] << 8);
+ var41.x2[0] =
+ ((orc_uint8) var37.x2[0] & 0x00ff) | ((orc_uint8) var39.x2[0] << 8);
+ var41.x2[1] =
+ ((orc_uint8) var37.x2[1] & 0x00ff) | ((orc_uint8) var39.x2[1] << 8);
/* 4: mergewl */
- var42.i = ((orc_uint16) var40.i) | ((orc_uint16) var40.i << 16);
+ var42.i =
+ ((orc_uint16) var40.i & 0x0000ffff) | ((orc_uint16) var40.i << 16);
/* 5: mergewl */
var38.x2[0] =
- ((orc_uint16) var41.x2[0]) | ((orc_uint16) var42.x2[0] << 16);
+ ((orc_uint16) var41.x2[0] & 0x0000ffff) | ((orc_uint16) var42.
+ x2[0] << 16);
var38.x2[1] =
- ((orc_uint16) var41.x2[1]) | ((orc_uint16) var42.x2[1] << 16);
+ ((orc_uint16) var41.x2[1] & 0x0000ffff) | ((orc_uint16) var42.
+ x2[1] << 16);
/* 6: storeq */
ptr0[i] = var38;
}
var39.x2[1] = (var36.x2[1] >> 8) & 0xff;
var40.x2[1] = var36.x2[1] & 0xff;
/* 3: mergebw */
- var41.x2[0] = ((orc_uint8) var37.x2[0]) | ((orc_uint8) var39.x2[0] << 8);
- var41.x2[1] = ((orc_uint8) var37.x2[1]) | ((orc_uint8) var39.x2[1] << 8);
+ var41.x2[0] =
+ ((orc_uint8) var37.x2[0] & 0x00ff) | ((orc_uint8) var39.x2[0] << 8);
+ var41.x2[1] =
+ ((orc_uint8) var37.x2[1] & 0x00ff) | ((orc_uint8) var39.x2[1] << 8);
/* 4: mergewl */
- var42.i = ((orc_uint16) var40.i) | ((orc_uint16) var40.i << 16);
+ var42.i =
+ ((orc_uint16) var40.i & 0x0000ffff) | ((orc_uint16) var40.i << 16);
/* 5: mergewl */
var38.x2[0] =
- ((orc_uint16) var41.x2[0]) | ((orc_uint16) var42.x2[0] << 16);
+ ((orc_uint16) var41.x2[0] & 0x0000ffff) | ((orc_uint16) var42.
+ x2[0] << 16);
var38.x2[1] =
- ((orc_uint16) var41.x2[1]) | ((orc_uint16) var42.x2[1] << 16);
+ ((orc_uint16) var41.x2[1] & 0x0000ffff) | ((orc_uint16) var42.
+ x2[1] << 16);
/* 6: storeq */
ptr0[i] = var38;
}
orc_program_add_destination (p, 8, "d1");
orc_program_add_source (p, 4, "s1");
orc_program_add_constant (p, 2, 0x000000ff, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
orc_program_add_temporary (p, 4, "t3");
orc_program_add_destination (p, 1, "d2");
orc_program_add_destination (p, 1, "d3");
orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "splitwb", 1, ORC_VAR_T1, ORC_VAR_D1, ORC_VAR_S1,
orc_program_add_destination (p, 1, "d2");
orc_program_add_destination (p, 1, "d3");
orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "splitwb", 1, ORC_VAR_D1, ORC_VAR_T1, ORC_VAR_S1,
orc_program_add_destination (p, 2, "d2");
orc_program_add_destination (p, 2, "d3");
orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 1, "t2");
orc_program_add_temporary (p, 1, "t3");
orc_program_add_destination (p, 2, "d2");
orc_program_add_destination (p, 2, "d3");
orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 1, "t2");
orc_program_add_temporary (p, 1, "t3");
orc_program_add_destination (p, 1, "d4");
orc_program_add_source (p, 4, "s1");
orc_program_add_source (p, 4, "s2");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
orc_program_add_temporary (p, 2, "t3");
orc_program_add_destination (p, 1, "d4");
orc_program_add_source (p, 8, "s1");
orc_program_add_source (p, 8, "s2");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 4, "t1");
orc_program_add_temporary (p, 4, "t2");
orc_program_add_temporary (p, 4, "t3");
var44.x2[0] = ((orc_uint16) var40.x2[0] >> 8) & 0xff;
var44.x2[1] = ((orc_uint16) var40.x2[1] >> 8) & 0xff;
/* 5: mergebw */
- var38.x2[0] = ((orc_uint8) var44.x2[0]) | ((orc_uint8) var43.x2[0] << 8);
- var38.x2[1] = ((orc_uint8) var44.x2[1]) | ((orc_uint8) var43.x2[1] << 8);
+ var38.x2[0] =
+ ((orc_uint8) var44.x2[0] & 0x00ff) | ((orc_uint8) var43.x2[0] << 8);
+ var38.x2[1] =
+ ((orc_uint8) var44.x2[1] & 0x00ff) | ((orc_uint8) var43.x2[1] << 8);
/* 6: storel */
ptr0[i] = var38;
}
var44.x2[0] = ((orc_uint16) var40.x2[0] >> 8) & 0xff;
var44.x2[1] = ((orc_uint16) var40.x2[1] >> 8) & 0xff;
/* 5: mergebw */
- var38.x2[0] = ((orc_uint8) var44.x2[0]) | ((orc_uint8) var43.x2[0] << 8);
- var38.x2[1] = ((orc_uint8) var44.x2[1]) | ((orc_uint8) var43.x2[1] << 8);
+ var38.x2[0] =
+ ((orc_uint8) var44.x2[0] & 0x00ff) | ((orc_uint8) var43.x2[0] << 8);
+ var38.x2[1] =
+ ((orc_uint8) var44.x2[1] & 0x00ff) | ((orc_uint8) var43.x2[1] << 8);
/* 6: storel */
ptr0[i] = var38;
}
orc_program_set_backup_function (p, _backup_cogorc_convert_AYUV_YUY2);
orc_program_add_destination (p, 4, "d1");
orc_program_add_source (p, 8, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
orc_program_add_temporary (p, 2, "t3");
var44.x2[0] = ((orc_uint16) var40.x2[0] >> 8) & 0xff;
var44.x2[1] = ((orc_uint16) var40.x2[1] >> 8) & 0xff;
/* 5: mergebw */
- var38.x2[0] = ((orc_uint8) var43.x2[0]) | ((orc_uint8) var44.x2[0] << 8);
- var38.x2[1] = ((orc_uint8) var43.x2[1]) | ((orc_uint8) var44.x2[1] << 8);
+ var38.x2[0] =
+ ((orc_uint8) var43.x2[0] & 0x00ff) | ((orc_uint8) var44.x2[0] << 8);
+ var38.x2[1] =
+ ((orc_uint8) var43.x2[1] & 0x00ff) | ((orc_uint8) var44.x2[1] << 8);
/* 6: storel */
ptr0[i] = var38;
}
var44.x2[0] = ((orc_uint16) var40.x2[0] >> 8) & 0xff;
var44.x2[1] = ((orc_uint16) var40.x2[1] >> 8) & 0xff;
/* 5: mergebw */
- var38.x2[0] = ((orc_uint8) var43.x2[0]) | ((orc_uint8) var44.x2[0] << 8);
- var38.x2[1] = ((orc_uint8) var43.x2[1]) | ((orc_uint8) var44.x2[1] << 8);
+ var38.x2[0] =
+ ((orc_uint8) var43.x2[0] & 0x00ff) | ((orc_uint8) var44.x2[0] << 8);
+ var38.x2[1] =
+ ((orc_uint8) var43.x2[1] & 0x00ff) | ((orc_uint8) var44.x2[1] << 8);
/* 6: storel */
ptr0[i] = var38;
}
orc_program_set_backup_function (p, _backup_cogorc_convert_AYUV_UYVY);
orc_program_add_destination (p, 4, "d1");
orc_program_add_source (p, 8, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
orc_program_add_temporary (p, 2, "t3");
orc_program_add_destination (p, 1, "d2");
orc_program_add_destination (p, 1, "d3");
orc_program_add_source (p, 8, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 4, "t1");
orc_program_add_temporary (p, 4, "t2");
orc_program_add_temporary (p, 2, "t3");
orc_program_add_destination (p, 1, "d2");
orc_program_add_destination (p, 1, "d3");
orc_program_add_source (p, 4, "s1");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
/* 1: loadb */
var34 = ptr6[i];
/* 2: mergebw */
- var37.i = ((orc_uint8) var33) | ((orc_uint8) var34 << 8);
+ var37.i = ((orc_uint8) var33 & 0x00ff) | ((orc_uint8) var34 << 8);
/* 3: loadw */
var35 = ptr4[i];
/* 4: mergebw */
- var36.x2[0] = ((orc_uint8) var35.x2[0]) | ((orc_uint8) var37.x2[0] << 8);
- var36.x2[1] = ((orc_uint8) var35.x2[1]) | ((orc_uint8) var37.x2[1] << 8);
+ var36.x2[0] =
+ ((orc_uint8) var35.x2[0] & 0x00ff) | ((orc_uint8) var37.x2[0] << 8);
+ var36.x2[1] =
+ ((orc_uint8) var35.x2[1] & 0x00ff) | ((orc_uint8) var37.x2[1] << 8);
/* 5: storel */
ptr0[i] = var36;
}
/* 1: loadb */
var34 = ptr6[i];
/* 2: mergebw */
- var37.i = ((orc_uint8) var33) | ((orc_uint8) var34 << 8);
+ var37.i = ((orc_uint8) var33 & 0x00ff) | ((orc_uint8) var34 << 8);
/* 3: loadw */
var35 = ptr4[i];
/* 4: mergebw */
- var36.x2[0] = ((orc_uint8) var35.x2[0]) | ((orc_uint8) var37.x2[0] << 8);
- var36.x2[1] = ((orc_uint8) var35.x2[1]) | ((orc_uint8) var37.x2[1] << 8);
+ var36.x2[0] =
+ ((orc_uint8) var35.x2[0] & 0x00ff) | ((orc_uint8) var37.x2[0] << 8);
+ var36.x2[1] =
+ ((orc_uint8) var35.x2[1] & 0x00ff) | ((orc_uint8) var37.x2[1] << 8);
/* 5: storel */
ptr0[i] = var36;
}
orc_program_add_source (p, 2, "s1");
orc_program_add_source (p, 1, "s2");
orc_program_add_source (p, 1, "s3");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "mergebw", 0, ORC_VAR_T1, ORC_VAR_S2, ORC_VAR_S3,
/* 1: loadb */
var34 = ptr6[i];
/* 2: mergebw */
- var37.i = ((orc_uint8) var33) | ((orc_uint8) var34 << 8);
+ var37.i = ((orc_uint8) var33 & 0x00ff) | ((orc_uint8) var34 << 8);
/* 3: loadw */
var35 = ptr4[i];
/* 4: mergebw */
- var36.x2[0] = ((orc_uint8) var37.x2[0]) | ((orc_uint8) var35.x2[0] << 8);
- var36.x2[1] = ((orc_uint8) var37.x2[1]) | ((orc_uint8) var35.x2[1] << 8);
+ var36.x2[0] =
+ ((orc_uint8) var37.x2[0] & 0x00ff) | ((orc_uint8) var35.x2[0] << 8);
+ var36.x2[1] =
+ ((orc_uint8) var37.x2[1] & 0x00ff) | ((orc_uint8) var35.x2[1] << 8);
/* 5: storel */
ptr0[i] = var36;
}
/* 1: loadb */
var34 = ptr6[i];
/* 2: mergebw */
- var37.i = ((orc_uint8) var33) | ((orc_uint8) var34 << 8);
+ var37.i = ((orc_uint8) var33 & 0x00ff) | ((orc_uint8) var34 << 8);
/* 3: loadw */
var35 = ptr4[i];
/* 4: mergebw */
- var36.x2[0] = ((orc_uint8) var37.x2[0]) | ((orc_uint8) var35.x2[0] << 8);
- var36.x2[1] = ((orc_uint8) var37.x2[1]) | ((orc_uint8) var35.x2[1] << 8);
+ var36.x2[0] =
+ ((orc_uint8) var37.x2[0] & 0x00ff) | ((orc_uint8) var35.x2[0] << 8);
+ var36.x2[1] =
+ ((orc_uint8) var37.x2[1] & 0x00ff) | ((orc_uint8) var35.x2[1] << 8);
/* 5: storel */
ptr0[i] = var36;
}
orc_program_add_source (p, 2, "s1");
orc_program_add_source (p, 1, "s2");
orc_program_add_source (p, 1, "s3");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_append_2 (p, "mergebw", 0, ORC_VAR_T1, ORC_VAR_S2, ORC_VAR_S3,
/* 1: loadb */
var37 = ptr6[i];
/* 2: mergebw */
- var41.i = ((orc_uint8) var36) | ((orc_uint8) var37 << 8);
+ var41.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8);
/* 4: loadw */
var39 = ptr4[i];
/* 5: mergebw */
- var42.x2[0] = ((orc_uint8) var38.x2[0]) | ((orc_uint8) var39.x2[0] << 8);
- var42.x2[1] = ((orc_uint8) var38.x2[1]) | ((orc_uint8) var39.x2[1] << 8);
+ var42.x2[0] =
+ ((orc_uint8) var38.x2[0] & 0x00ff) | ((orc_uint8) var39.x2[0] << 8);
+ var42.x2[1] =
+ ((orc_uint8) var38.x2[1] & 0x00ff) | ((orc_uint8) var39.x2[1] << 8);
/* 6: mergewl */
- var43.i = ((orc_uint16) var41.i) | ((orc_uint16) var41.i << 16);
+ var43.i =
+ ((orc_uint16) var41.i & 0x0000ffff) | ((orc_uint16) var41.i << 16);
/* 7: mergewl */
var40.x2[0] =
- ((orc_uint16) var42.x2[0]) | ((orc_uint16) var43.x2[0] << 16);
+ ((orc_uint16) var42.x2[0] & 0x0000ffff) | ((orc_uint16) var43.
+ x2[0] << 16);
var40.x2[1] =
- ((orc_uint16) var42.x2[1]) | ((orc_uint16) var43.x2[1] << 16);
+ ((orc_uint16) var42.x2[1] & 0x0000ffff) | ((orc_uint16) var43.
+ x2[1] << 16);
/* 8: storeq */
ptr0[i] = var40;
}
/* 1: loadb */
var37 = ptr6[i];
/* 2: mergebw */
- var41.i = ((orc_uint8) var36) | ((orc_uint8) var37 << 8);
+ var41.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8);
/* 4: loadw */
var39 = ptr4[i];
/* 5: mergebw */
- var42.x2[0] = ((orc_uint8) var38.x2[0]) | ((orc_uint8) var39.x2[0] << 8);
- var42.x2[1] = ((orc_uint8) var38.x2[1]) | ((orc_uint8) var39.x2[1] << 8);
+ var42.x2[0] =
+ ((orc_uint8) var38.x2[0] & 0x00ff) | ((orc_uint8) var39.x2[0] << 8);
+ var42.x2[1] =
+ ((orc_uint8) var38.x2[1] & 0x00ff) | ((orc_uint8) var39.x2[1] << 8);
/* 6: mergewl */
- var43.i = ((orc_uint16) var41.i) | ((orc_uint16) var41.i << 16);
+ var43.i =
+ ((orc_uint16) var41.i & 0x0000ffff) | ((orc_uint16) var41.i << 16);
/* 7: mergewl */
var40.x2[0] =
- ((orc_uint16) var42.x2[0]) | ((orc_uint16) var43.x2[0] << 16);
+ ((orc_uint16) var42.x2[0] & 0x0000ffff) | ((orc_uint16) var43.
+ x2[0] << 16);
var40.x2[1] =
- ((orc_uint16) var42.x2[1]) | ((orc_uint16) var43.x2[1] << 16);
+ ((orc_uint16) var42.x2[1] & 0x0000ffff) | ((orc_uint16) var43.
+ x2[1] << 16);
/* 8: storeq */
ptr0[i] = var40;
}
orc_program_add_source (p, 1, "s2");
orc_program_add_source (p, 1, "s3");
orc_program_add_constant (p, 1, 0x000000ff, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
orc_program_add_temporary (p, 4, "t3");
/* 1: loadw */
var37 = ptr6[i];
/* 2: mergebw */
- var40.x2[0] = ((orc_uint8) var36.x2[0]) | ((orc_uint8) var37.x2[0] << 8);
- var40.x2[1] = ((orc_uint8) var36.x2[1]) | ((orc_uint8) var37.x2[1] << 8);
+ var40.x2[0] =
+ ((orc_uint8) var36.x2[0] & 0x00ff) | ((orc_uint8) var37.x2[0] << 8);
+ var40.x2[1] =
+ ((orc_uint8) var36.x2[1] & 0x00ff) | ((orc_uint8) var37.x2[1] << 8);
/* 3: splitlw */
var41.i = (var40.i >> 16) & 0xffff;
var42.i = var40.i & 0xffff;
/* 5: loadw */
var38 = ptr4[i];
/* 6: mergebw */
- var39.x2[0] = ((orc_uint8) var38.x2[0]) | ((orc_uint8) var43.x2[0] << 8);
- var39.x2[1] = ((orc_uint8) var38.x2[1]) | ((orc_uint8) var43.x2[1] << 8);
+ var39.x2[0] =
+ ((orc_uint8) var38.x2[0] & 0x00ff) | ((orc_uint8) var43.x2[0] << 8);
+ var39.x2[1] =
+ ((orc_uint8) var38.x2[1] & 0x00ff) | ((orc_uint8) var43.x2[1] << 8);
/* 7: storel */
ptr0[i] = var39;
}
/* 1: loadw */
var37 = ptr6[i];
/* 2: mergebw */
- var40.x2[0] = ((orc_uint8) var36.x2[0]) | ((orc_uint8) var37.x2[0] << 8);
- var40.x2[1] = ((orc_uint8) var36.x2[1]) | ((orc_uint8) var37.x2[1] << 8);
+ var40.x2[0] =
+ ((orc_uint8) var36.x2[0] & 0x00ff) | ((orc_uint8) var37.x2[0] << 8);
+ var40.x2[1] =
+ ((orc_uint8) var36.x2[1] & 0x00ff) | ((orc_uint8) var37.x2[1] << 8);
/* 3: splitlw */
var41.i = (var40.i >> 16) & 0xffff;
var42.i = var40.i & 0xffff;
/* 5: loadw */
var38 = ptr4[i];
/* 6: mergebw */
- var39.x2[0] = ((orc_uint8) var38.x2[0]) | ((orc_uint8) var43.x2[0] << 8);
- var39.x2[1] = ((orc_uint8) var38.x2[1]) | ((orc_uint8) var43.x2[1] << 8);
+ var39.x2[0] =
+ ((orc_uint8) var38.x2[0] & 0x00ff) | ((orc_uint8) var43.x2[0] << 8);
+ var39.x2[1] =
+ ((orc_uint8) var38.x2[1] & 0x00ff) | ((orc_uint8) var43.x2[1] << 8);
/* 7: storel */
ptr0[i] = var39;
}
orc_program_add_source (p, 2, "s1");
orc_program_add_source (p, 2, "s2");
orc_program_add_source (p, 2, "s3");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 4, "t2");
orc_program_add_temporary (p, 2, "t3");
/* 1: loadw */
var37 = ptr6[i];
/* 2: mergebw */
- var40.x2[0] = ((orc_uint8) var36.x2[0]) | ((orc_uint8) var37.x2[0] << 8);
- var40.x2[1] = ((orc_uint8) var36.x2[1]) | ((orc_uint8) var37.x2[1] << 8);
+ var40.x2[0] =
+ ((orc_uint8) var36.x2[0] & 0x00ff) | ((orc_uint8) var37.x2[0] << 8);
+ var40.x2[1] =
+ ((orc_uint8) var36.x2[1] & 0x00ff) | ((orc_uint8) var37.x2[1] << 8);
/* 3: splitlw */
var41.i = (var40.i >> 16) & 0xffff;
var42.i = var40.i & 0xffff;
/* 5: loadw */
var38 = ptr4[i];
/* 6: mergebw */
- var39.x2[0] = ((orc_uint8) var43.x2[0]) | ((orc_uint8) var38.x2[0] << 8);
- var39.x2[1] = ((orc_uint8) var43.x2[1]) | ((orc_uint8) var38.x2[1] << 8);
+ var39.x2[0] =
+ ((orc_uint8) var43.x2[0] & 0x00ff) | ((orc_uint8) var38.x2[0] << 8);
+ var39.x2[1] =
+ ((orc_uint8) var43.x2[1] & 0x00ff) | ((orc_uint8) var38.x2[1] << 8);
/* 7: storel */
ptr0[i] = var39;
}
/* 1: loadw */
var37 = ptr6[i];
/* 2: mergebw */
- var40.x2[0] = ((orc_uint8) var36.x2[0]) | ((orc_uint8) var37.x2[0] << 8);
- var40.x2[1] = ((orc_uint8) var36.x2[1]) | ((orc_uint8) var37.x2[1] << 8);
+ var40.x2[0] =
+ ((orc_uint8) var36.x2[0] & 0x00ff) | ((orc_uint8) var37.x2[0] << 8);
+ var40.x2[1] =
+ ((orc_uint8) var36.x2[1] & 0x00ff) | ((orc_uint8) var37.x2[1] << 8);
/* 3: splitlw */
var41.i = (var40.i >> 16) & 0xffff;
var42.i = var40.i & 0xffff;
/* 5: loadw */
var38 = ptr4[i];
/* 6: mergebw */
- var39.x2[0] = ((orc_uint8) var43.x2[0]) | ((orc_uint8) var38.x2[0] << 8);
- var39.x2[1] = ((orc_uint8) var43.x2[1]) | ((orc_uint8) var38.x2[1] << 8);
+ var39.x2[0] =
+ ((orc_uint8) var43.x2[0] & 0x00ff) | ((orc_uint8) var38.x2[0] << 8);
+ var39.x2[1] =
+ ((orc_uint8) var43.x2[1] & 0x00ff) | ((orc_uint8) var38.x2[1] << 8);
/* 7: storel */
ptr0[i] = var39;
}
orc_program_add_source (p, 2, "s1");
orc_program_add_source (p, 2, "s2");
orc_program_add_source (p, 2, "s3");
- orc_program_add_constant (p, 0, 0x00000000, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 4, "t2");
orc_program_add_temporary (p, 2, "t3");
/* 1: loadb */
var35 = ptr6[i];
/* 2: mergebw */
- var39.i = ((orc_uint8) var34) | ((orc_uint8) var35 << 8);
+ var39.i = ((orc_uint8) var34 & 0x00ff) | ((orc_uint8) var35 << 8);
/* 4: loadb */
var37 = ptr4[i];
/* 5: mergebw */
- var40.i = ((orc_uint8) var36) | ((orc_uint8) var37 << 8);
+ var40.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8);
/* 6: mergewl */
- var38.i = ((orc_uint16) var40.i) | ((orc_uint16) var39.i << 16);
+ var38.i =
+ ((orc_uint16) var40.i & 0x0000ffff) | ((orc_uint16) var39.i << 16);
/* 7: storel */
ptr0[i] = var38;
}
/* 1: loadb */
var35 = ptr6[i];
/* 2: mergebw */
- var39.i = ((orc_uint8) var34) | ((orc_uint8) var35 << 8);
+ var39.i = ((orc_uint8) var34 & 0x00ff) | ((orc_uint8) var35 << 8);
/* 4: loadb */
var37 = ptr4[i];
/* 5: mergebw */
- var40.i = ((orc_uint8) var36) | ((orc_uint8) var37 << 8);
+ var40.i = ((orc_uint8) var36 & 0x00ff) | ((orc_uint8) var37 << 8);
/* 6: mergewl */
- var38.i = ((orc_uint16) var40.i) | ((orc_uint16) var39.i << 16);
+ var38.i =
+ ((orc_uint16) var40.i & 0x0000ffff) | ((orc_uint16) var39.i << 16);
/* 7: storel */
ptr0[i] = var38;
}
orc_program_add_source (p, 1, "s2");
orc_program_add_source (p, 1, "s3");
orc_program_add_constant (p, 1, 0x000000ff, "c1");
- orc_program_add_constant (p, 0, 0x00000000, "c2");
- orc_program_add_constant (p, 0, 0x00000000, "c3");
- orc_program_add_constant (p, 0, 0x00000000, "c4");
- orc_program_add_constant (p, 0, 0x00000000, "c5");
- orc_program_add_constant (p, 0, 0x00000000, "c6");
- orc_program_add_constant (p, 0, 0x00000000, "c7");
- orc_program_add_constant (p, 0, 0x00000000, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
/* 36: convssswb */
var89 = ORC_CLAMP_SB (var79.i);
/* 37: mergebw */
- var90.i = ((orc_uint8) var61) | ((orc_uint8) var87 << 8);
+ var90.i = ((orc_uint8) var61 & 0x00ff) | ((orc_uint8) var87 << 8);
/* 38: mergebw */
- var91.i = ((orc_uint8) var88) | ((orc_uint8) var89 << 8);
+ var91.i = ((orc_uint8) var88 & 0x00ff) | ((orc_uint8) var89 << 8);
/* 39: mergewl */
- var92.i = ((orc_uint16) var90.i) | ((orc_uint16) var91.i << 16);
+ var92.i =
+ ((orc_uint16) var90.i & 0x0000ffff) | ((orc_uint16) var91.i << 16);
/* 41: addb */
var56.x4[0] = var92.x4[0] + var55.x4[0];
var56.x4[1] = var92.x4[1] + var55.x4[1];
/* 36: convssswb */
var89 = ORC_CLAMP_SB (var79.i);
/* 37: mergebw */
- var90.i = ((orc_uint8) var61) | ((orc_uint8) var87 << 8);
+ var90.i = ((orc_uint8) var61 & 0x00ff) | ((orc_uint8) var87 << 8);
/* 38: mergebw */
- var91.i = ((orc_uint8) var88) | ((orc_uint8) var89 << 8);
+ var91.i = ((orc_uint8) var88 & 0x00ff) | ((orc_uint8) var89 << 8);
/* 39: mergewl */
- var92.i = ((orc_uint16) var90.i) | ((orc_uint16) var91.i << 16);
+ var92.i =
+ ((orc_uint16) var90.i & 0x0000ffff) | ((orc_uint16) var91.i << 16);
/* 41: addb */
var56.x4[0] = var92.x4[0] + var55.x4[0];
var56.x4[1] = var92.x4[1] + var55.x4[1];
orc_program_add_constant (p, 4, 0x00000004, "c5");
orc_program_add_constant (p, 4, 0x00000064, "c6");
orc_program_add_constant (p, 4, 0x00000068, "c7");
- orc_program_add_constant (p, 0, 0x00000080, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
orc_program_add_temporary (p, 1, "t3");
/* 36: convssswb */
var89 = ORC_CLAMP_SB (var79.i);
/* 37: mergebw */
- var90.i = ((orc_uint8) var89) | ((orc_uint8) var88 << 8);
+ var90.i = ((orc_uint8) var89 & 0x00ff) | ((orc_uint8) var88 << 8);
/* 38: mergebw */
- var91.i = ((orc_uint8) var87) | ((orc_uint8) var61 << 8);
+ var91.i = ((orc_uint8) var87 & 0x00ff) | ((orc_uint8) var61 << 8);
/* 39: mergewl */
- var92.i = ((orc_uint16) var90.i) | ((orc_uint16) var91.i << 16);
+ var92.i =
+ ((orc_uint16) var90.i & 0x0000ffff) | ((orc_uint16) var91.i << 16);
/* 41: addb */
var56.x4[0] = var92.x4[0] + var55.x4[0];
var56.x4[1] = var92.x4[1] + var55.x4[1];
/* 36: convssswb */
var89 = ORC_CLAMP_SB (var79.i);
/* 37: mergebw */
- var90.i = ((orc_uint8) var89) | ((orc_uint8) var88 << 8);
+ var90.i = ((orc_uint8) var89 & 0x00ff) | ((orc_uint8) var88 << 8);
/* 38: mergebw */
- var91.i = ((orc_uint8) var87) | ((orc_uint8) var61 << 8);
+ var91.i = ((orc_uint8) var87 & 0x00ff) | ((orc_uint8) var61 << 8);
/* 39: mergewl */
- var92.i = ((orc_uint16) var90.i) | ((orc_uint16) var91.i << 16);
+ var92.i =
+ ((orc_uint16) var90.i & 0x0000ffff) | ((orc_uint16) var91.i << 16);
/* 41: addb */
var56.x4[0] = var92.x4[0] + var55.x4[0];
var56.x4[1] = var92.x4[1] + var55.x4[1];
orc_program_add_constant (p, 4, 0x00000004, "c5");
orc_program_add_constant (p, 4, 0x00000064, "c6");
orc_program_add_constant (p, 4, 0x00000068, "c7");
- orc_program_add_constant (p, 0, 0x00000080, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
orc_program_add_temporary (p, 1, "t3");
/* 36: convssswb */
var89 = ORC_CLAMP_SB (var79.i);
/* 37: mergebw */
- var90.i = ((orc_uint8) var61) | ((orc_uint8) var89 << 8);
+ var90.i = ((orc_uint8) var61 & 0x00ff) | ((orc_uint8) var89 << 8);
/* 38: mergebw */
- var91.i = ((orc_uint8) var88) | ((orc_uint8) var87 << 8);
+ var91.i = ((orc_uint8) var88 & 0x00ff) | ((orc_uint8) var87 << 8);
/* 39: mergewl */
- var92.i = ((orc_uint16) var90.i) | ((orc_uint16) var91.i << 16);
+ var92.i =
+ ((orc_uint16) var90.i & 0x0000ffff) | ((orc_uint16) var91.i << 16);
/* 41: addb */
var56.x4[0] = var92.x4[0] + var55.x4[0];
var56.x4[1] = var92.x4[1] + var55.x4[1];
/* 36: convssswb */
var89 = ORC_CLAMP_SB (var79.i);
/* 37: mergebw */
- var90.i = ((orc_uint8) var61) | ((orc_uint8) var89 << 8);
+ var90.i = ((orc_uint8) var61 & 0x00ff) | ((orc_uint8) var89 << 8);
/* 38: mergebw */
- var91.i = ((orc_uint8) var88) | ((orc_uint8) var87 << 8);
+ var91.i = ((orc_uint8) var88 & 0x00ff) | ((orc_uint8) var87 << 8);
/* 39: mergewl */
- var92.i = ((orc_uint16) var90.i) | ((orc_uint16) var91.i << 16);
+ var92.i =
+ ((orc_uint16) var90.i & 0x0000ffff) | ((orc_uint16) var91.i << 16);
/* 41: addb */
var56.x4[0] = var92.x4[0] + var55.x4[0];
var56.x4[1] = var92.x4[1] + var55.x4[1];
orc_program_add_constant (p, 4, 0x00000004, "c5");
orc_program_add_constant (p, 4, 0x00000064, "c6");
orc_program_add_constant (p, 4, 0x00000068, "c7");
- orc_program_add_constant (p, 0, 0x00000080, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
orc_program_add_temporary (p, 1, "t3");
/* 36: convssswb */
var89 = ORC_CLAMP_SB (var79.i);
/* 37: mergebw */
- var90.i = ((orc_uint8) var87) | ((orc_uint8) var88 << 8);
+ var90.i = ((orc_uint8) var87 & 0x00ff) | ((orc_uint8) var88 << 8);
/* 38: mergebw */
- var91.i = ((orc_uint8) var89) | ((orc_uint8) var61 << 8);
+ var91.i = ((orc_uint8) var89 & 0x00ff) | ((orc_uint8) var61 << 8);
/* 39: mergewl */
- var92.i = ((orc_uint16) var90.i) | ((orc_uint16) var91.i << 16);
+ var92.i =
+ ((orc_uint16) var90.i & 0x0000ffff) | ((orc_uint16) var91.i << 16);
/* 41: addb */
var56.x4[0] = var92.x4[0] + var55.x4[0];
var56.x4[1] = var92.x4[1] + var55.x4[1];
/* 36: convssswb */
var89 = ORC_CLAMP_SB (var79.i);
/* 37: mergebw */
- var90.i = ((orc_uint8) var87) | ((orc_uint8) var88 << 8);
+ var90.i = ((orc_uint8) var87 & 0x00ff) | ((orc_uint8) var88 << 8);
/* 38: mergebw */
- var91.i = ((orc_uint8) var89) | ((orc_uint8) var61 << 8);
+ var91.i = ((orc_uint8) var89 & 0x00ff) | ((orc_uint8) var61 << 8);
/* 39: mergewl */
- var92.i = ((orc_uint16) var90.i) | ((orc_uint16) var91.i << 16);
+ var92.i =
+ ((orc_uint16) var90.i & 0x0000ffff) | ((orc_uint16) var91.i << 16);
/* 41: addb */
var56.x4[0] = var92.x4[0] + var55.x4[0];
var56.x4[1] = var92.x4[1] + var55.x4[1];
orc_program_add_constant (p, 4, 0x00000004, "c5");
orc_program_add_constant (p, 4, 0x00000064, "c6");
orc_program_add_constant (p, 4, 0x00000068, "c7");
- orc_program_add_constant (p, 0, 0x00000080, "c8");
orc_program_add_temporary (p, 2, "t1");
orc_program_add_temporary (p, 2, "t2");
orc_program_add_temporary (p, 1, "t3");
/* 39: convssswb */
var87 = ORC_CLAMP_SB (var77.i);
/* 40: mergebw */
- var88.i = ((orc_uint8) var87) | ((orc_uint8) var86 << 8);
+ var88.i = ((orc_uint8) var87 & 0x00ff) | ((orc_uint8) var86 << 8);
/* 42: mergebw */
- var89.i = ((orc_uint8) var85) | ((orc_uint8) var54 << 8);
+ var89.i = ((orc_uint8) var85 & 0x00ff) | ((orc_uint8) var54 << 8);
/* 43: mergewl */
- var90.i = ((orc_uint16) var88.i) | ((orc_uint16) var89.i << 16);
+ var90.i =
+ ((orc_uint16) var88.i & 0x0000ffff) | ((orc_uint16) var89.i << 16);
/* 45: addb */
var56.x4[0] = var90.x4[0] + var55.x4[0];
var56.x4[1] = var90.x4[1] + var55.x4[1];
/* 39: convssswb */
var87 = ORC_CLAMP_SB (var77.i);
/* 40: mergebw */
- var88.i = ((orc_uint8) var87) | ((orc_uint8) var86 << 8);
+ var88.i = ((orc_uint8) var87 & 0x00ff) | ((orc_uint8) var86 << 8);
/* 42: mergebw */
- var89.i = ((orc_uint8) var85) | ((orc_uint8) var54 << 8);
+ var89.i = ((orc_uint8) var85 & 0x00ff) | ((orc_uint8) var54 << 8);
/* 43: mergewl */
- var90.i = ((orc_uint16) var88.i) | ((orc_uint16) var89.i << 16);
+ var90.i =
+ ((orc_uint16) var88.i & 0x0000ffff) | ((orc_uint16) var89.i << 16);
/* 45: addb */
var56.x4[0] = var90.x4[0] + var55.x4[0];
var56.x4[1] = var90.x4[1] + var55.x4[1];
/* 43: convssswb */
var92 = ORC_CLAMP_SB (var82.i);
/* 44: mergebw */
- var93.i = ((orc_uint8) var92) | ((orc_uint8) var91 << 8);
+ var93.i = ((orc_uint8) var92 & 0x00ff) | ((orc_uint8) var91 << 8);
/* 46: mergebw */
- var94.i = ((orc_uint8) var90) | ((orc_uint8) var55 << 8);
+ var94.i = ((orc_uint8) var90 & 0x00ff) | ((orc_uint8) var55 << 8);
/* 47: mergewl */
- var95.i = ((orc_uint16) var93.i) | ((orc_uint16) var94.i << 16);
+ var95.i =
+ ((orc_uint16) var93.i & 0x0000ffff) | ((orc_uint16) var94.i << 16);
/* 49: addb */
var57.x4[0] = var95.x4[0] + var56.x4[0];
var57.x4[1] = var95.x4[1] + var56.x4[1];
/* 43: convssswb */
var92 = ORC_CLAMP_SB (var82.i);
/* 44: mergebw */
- var93.i = ((orc_uint8) var92) | ((orc_uint8) var91 << 8);
+ var93.i = ((orc_uint8) var92 & 0x00ff) | ((orc_uint8) var91 << 8);
/* 46: mergebw */
- var94.i = ((orc_uint8) var90) | ((orc_uint8) var55 << 8);
+ var94.i = ((orc_uint8) var90 & 0x00ff) | ((orc_uint8) var55 << 8);
/* 47: mergewl */
- var95.i = ((orc_uint16) var93.i) | ((orc_uint16) var94.i << 16);
+ var95.i =
+ ((orc_uint16) var93.i & 0x0000ffff) | ((orc_uint16) var94.i << 16);
/* 49: addb */
var57.x4[0] = var95.x4[0] + var56.x4[0];
var57.x4[1] = var95.x4[1] + var56.x4[1];