Go to the documentation of this file.
31 #define storeneonregs(mem) \
33 "vstm %0, {d8-d15}\n\t" \
34 :: "r"(mem) : "memory")
36 #define testneonclobbers(func, ctx, ...) \
37 uint64_t neon[2][8]; \
39 storeneonregs(neon[0]); \
40 ret = __real_ ## func(ctx, __VA_ARGS__); \
41 storeneonregs(neon[1]); \
42 if (memcmp(neon[0], neon[1], sizeof(neon[0]))) { \
44 av_log(ctx, AV_LOG_ERROR, \
45 "NEON REGS CLOBBERED IN %s!\n", #func); \
46 for (i = 0; i < 8; i ++) \
47 if (neon[0][i] != neon[1][i]) { \
48 av_log(ctx, AV_LOG_ERROR, \
49 "d%-2d = %016"PRIx64"\n", \
50 8 + i, av_bswap64(neon[0][i])); \
51 av_log(ctx, AV_LOG_ERROR, \
52 " -> %016"PRIx64"\n", \
53 av_bswap64(neon[1][i])); \
60 int __real_ ## func; \
61 int __wrap_ ## func; \