• Home
  • Raw
  • Download

Lines Matching refs:src2

157 #define NEON_USAT(dest, src1, src2, type) do { \  argument
158 uint32_t tmp = (uint32_t)src1 + (uint32_t)src2; \
165 #define NEON_FN(dest, src1, src2) NEON_USAT(dest, src1, src2, uint8_t) argument
168 #define NEON_FN(dest, src1, src2) NEON_USAT(dest, src1, src2, uint16_t) argument
183 uint64_t HELPER(neon_qadd_u64)(uint64_t src1, uint64_t src2) in HELPER()
187 res = src1 + src2; in HELPER()
195 #define NEON_SSAT(dest, src1, src2, type) do { \ argument
196 int32_t tmp = (uint32_t)src1 + (uint32_t)src2; \
199 if (src2 > 0) { \
207 #define NEON_FN(dest, src1, src2) NEON_SSAT(dest, src1, src2, int8_t) argument
210 #define NEON_FN(dest, src1, src2) NEON_SSAT(dest, src1, src2, int16_t) argument
225 uint64_t HELPER(neon_qadd_s64)(uint64_t src1, uint64_t src2) in HELPER()
229 res = src1 + src2; in HELPER()
230 if (((res ^ src1) & SIGNBIT64) && !((src1 ^ src2) & SIGNBIT64)) { in HELPER()
237 #define NEON_USAT(dest, src1, src2, type) do { \ argument
238 uint32_t tmp = (uint32_t)src1 - (uint32_t)src2; \
245 #define NEON_FN(dest, src1, src2) NEON_USAT(dest, src1, src2, uint8_t) argument
248 #define NEON_FN(dest, src1, src2) NEON_USAT(dest, src1, src2, uint16_t) argument
263 uint64_t HELPER(neon_qsub_u64)(uint64_t src1, uint64_t src2) in HELPER()
267 if (src1 < src2) { in HELPER()
271 res = src1 - src2; in HELPER()
276 #define NEON_SSAT(dest, src1, src2, type) do { \ argument
277 int32_t tmp = (uint32_t)src1 - (uint32_t)src2; \
280 if (src2 < 0) { \
288 #define NEON_FN(dest, src1, src2) NEON_SSAT(dest, src1, src2, int8_t) argument
291 #define NEON_FN(dest, src1, src2) NEON_SSAT(dest, src1, src2, int16_t) argument
306 uint64_t HELPER(neon_qsub_s64)(uint64_t src1, uint64_t src2) in HELPER()
310 res = src1 - src2; in HELPER()
311 if (((res ^ src1) & SIGNBIT64) && ((src1 ^ src2) & SIGNBIT64)) { in HELPER()
318 #define NEON_FN(dest, src1, src2) dest = (src1 + src2) >> 1 argument
325 int32_t HELPER(neon_hadd_s32)(int32_t src1, int32_t src2) in HELPER()
329 dest = (src1 >> 1) + (src2 >> 1); in HELPER()
330 if (src1 & src2 & 1) in HELPER()
335 uint32_t HELPER(neon_hadd_u32)(uint32_t src1, uint32_t src2) in HELPER()
339 dest = (src1 >> 1) + (src2 >> 1); in HELPER()
340 if (src1 & src2 & 1) in HELPER()
345 #define NEON_FN(dest, src1, src2) dest = (src1 + src2 + 1) >> 1 argument
352 int32_t HELPER(neon_rhadd_s32)(int32_t src1, int32_t src2) in HELPER()
356 dest = (src1 >> 1) + (src2 >> 1); in HELPER()
357 if ((src1 | src2) & 1) in HELPER()
362 uint32_t HELPER(neon_rhadd_u32)(uint32_t src1, uint32_t src2) in HELPER()
366 dest = (src1 >> 1) + (src2 >> 1); in HELPER()
367 if ((src1 | src2) & 1) in HELPER()
372 #define NEON_FN(dest, src1, src2) dest = (src1 - src2) >> 1 argument
379 int32_t HELPER(neon_hsub_s32)(int32_t src1, int32_t src2) in HELPER()
383 dest = (src1 >> 1) - (src2 >> 1); in HELPER()
384 if ((~src1) & src2 & 1) in HELPER()
389 uint32_t HELPER(neon_hsub_u32)(uint32_t src1, uint32_t src2) in HELPER()
393 dest = (src1 >> 1) - (src2 >> 1); in HELPER()
394 if ((~src1) & src2 & 1) in HELPER()
399 #define NEON_FN(dest, src1, src2) dest = (src1 > src2) ? ~0 : 0 argument
408 #define NEON_FN(dest, src1, src2) dest = (src1 >= src2) ? ~0 : 0 argument
417 #define NEON_FN(dest, src1, src2) dest = (src1 < src2) ? src1 : src2 argument
430 #define NEON_FN(dest, src1, src2) dest = (src1 > src2) ? src1 : src2 argument
443 #define NEON_FN(dest, src1, src2) \ argument
444 dest = (src1 > src2) ? (src1 - src2) : (src2 - src1)
453 #define NEON_FN(dest, src1, src2) do { \ argument
455 tmp = (int8_t)src2; \
482 #define NEON_FN(dest, src1, src2) do { \ argument
484 tmp = (int8_t)src2; \
515 #define NEON_FN(dest, src1, src2) do { \ argument
517 tmp = (int8_t)src2; \
573 #define NEON_FN(dest, src1, src2) do { \ argument
575 tmp = (int8_t)src2; \
636 #define NEON_FN(dest, src1, src2) do { \ argument
638 tmp = (int8_t)src2; \
685 #define NEON_FN(dest, src1, src2) do { \ argument
687 tmp = (int8_t)src2; \
741 #define NEON_FN(dest, src1, src2) do { \ argument
747 tmp = (int8_t)src2; \
790 #define NEON_FN(dest, src1, src2) do { \ argument
792 tmp = (int8_t)src2; \
883 #define NEON_FN(dest, src1, src2) do { \ argument
885 tmp = (int8_t)src2; \
997 #define NEON_FN(dest, src1, src2) dest = src1 + src2 argument
1002 #define NEON_FN(dest, src1, src2) dest = src1 - src2 argument
1007 #define NEON_FN(dest, src1, src2) dest = src1 * src2 argument
1066 #define NEON_FN(dest, src1, src2) dest = (src1 & src2) ? -1 : 0 argument
1072 #define NEON_FN(dest, src1, src2) dest = (src1 == src2) ? -1 : 0 argument
1135 #define NEON_QDMULH16(dest, src1, src2, round) do { \ argument
1136 uint32_t tmp = (int32_t)(int16_t) src1 * (int16_t) src2; \
1153 #define NEON_FN(dest, src1, src2) NEON_QDMULH16(dest, src1, src2, 0) argument
1156 #define NEON_FN(dest, src1, src2) NEON_QDMULH16(dest, src1, src2, 1) argument
1161 #define NEON_QDMULH32(dest, src1, src2, round) do { \ argument
1162 uint64_t tmp = (int64_t)(int32_t) src1 * (int32_t) src2; \
1179 #define NEON_FN(dest, src1, src2) NEON_QDMULH32(dest, src1, src2, 0) argument
1182 #define NEON_FN(dest, src1, src2) NEON_QDMULH32(dest, src1, src2, 1) argument