Go to the documentation of this file.
   23 #ifndef AVUTIL_AARCH64_NEONTEST_H 
   24 #define AVUTIL_AARCH64_NEONTEST_H 
   34 #define storeneonregs(mem)                \ 
   36         "stp d8,  d9,  [%0]\n\t"          \ 
   37         "stp d10, d11, [%0, #16]\n\t"     \ 
   38         "stp d12, d13, [%0, #32]\n\t"     \ 
   39         "stp d14, d15, [%0, #48]\n\t"     \ 
   40         :: "r"(mem) : "memory") 
   42 #define testneonclobbers(func, ctx, ...)                        \ 
   43     uint64_t neon[2][8];                                        \ 
   45     storeneonregs(neon[0]);                                     \ 
   46     ret = __real_ ## func(ctx, __VA_ARGS__);                    \ 
   47     storeneonregs(neon[1]);                                     \ 
   48     if (memcmp(neon[0], neon[1], sizeof(neon[0]))) {            \ 
   50         av_log(ctx, AV_LOG_ERROR,                               \ 
   51                "NEON REGS CLOBBERED IN %s!\n", #func);          \ 
   52         for (i = 0; i < 8; i ++)                                \ 
   53             if (neon[0][i] != neon[1][i]) {                     \ 
   54                 av_log(ctx, AV_LOG_ERROR,                       \ 
   55                        "d%-2d = %016"PRIx64"\n",                \ 
   56                        8 + i, av_bswap64(neon[0][i]));          \ 
   57                 av_log(ctx, AV_LOG_ERROR,                       \ 
   58                        "   -> %016"PRIx64"\n",                  \ 
   59                        av_bswap64(neon[1][i]));                 \ 
   66 int __real_ ## func;    \ 
   67 int __wrap_ ## func;    \