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