Go to the documentation of this file.
49 #include "config_components.h"
52 # define _GNU_SOURCE // for syscall (performance monitoring API), strsignal()
71 #include <sys/prctl.h>
74 #if defined(_WIN32) && !defined(SIGBUS)
79 #if HAVE_SETCONSOLETEXTATTRIBUTE && HAVE_GETSTDHANDLE
81 #define COLOR_RED FOREGROUND_RED
82 #define COLOR_GREEN FOREGROUND_GREEN
83 #define COLOR_YELLOW (FOREGROUND_RED|FOREGROUND_GREEN)
87 #define COLOR_YELLOW 3
104 #if ARCH_ARM && HAVE_ARMV5TE_EXTERNAL
107 void (*checkasm_checked_call)(
void *
func,
int dummy, ...) = checkasm_checked_call_novfp;
114 static const struct {
119 #if CONFIG_AAC_DECODER
123 #if CONFIG_AAC_ENCODER
129 #if CONFIG_ALAC_DECODER
141 #if CONFIG_DCA_DECODER
144 #if CONFIG_DIRAC_DECODER
147 #if CONFIG_EXR_DECODER
153 #if CONFIG_FLAC_DECODER
156 #if CONFIG_FMTCONVERT
165 #if CONFIG_H264CHROMA
177 #if CONFIG_HEVC_DECODER
184 #if CONFIG_HUFFYUV_DECODER
190 #if CONFIG_JPEG2000_DECODER
196 #if CONFIG_HUFFYUVDSP
199 #if CONFIG_LLVIDENCDSP
208 #if CONFIG_MPEGVIDEOENC
211 #if CONFIG_OPUS_DECODER
214 #if CONFIG_PIXBLOCKDSP
220 #if CONFIG_RV40_DECODER
223 #if CONFIG_SVQ1_ENCODER
226 #if CONFIG_TAK_DECODER
229 #if CONFIG_UTVIDEO_DECODER
232 #if CONFIG_V210_DECODER
235 #if CONFIG_V210_ENCODER
244 #if CONFIG_VP9_DECODER
250 #if CONFIG_VORBIS_DECODER
253 #if CONFIG_VVC_DECODER
259 #if CONFIG_AFIR_FILTER
262 #if CONFIG_BLEND_FILTER
265 #if CONFIG_BWDIF_FILTER
268 #if CONFIG_COLORSPACE_FILTER
274 #if CONFIG_GBLUR_FILTER
277 #if CONFIG_HFLIP_FILTER
280 #if CONFIG_NLMEANS_FILTER
283 #if CONFIG_THRESHOLD_FILTER
286 #if CONFIG_SOBEL_FILTER
308 static const struct {
434 if (llabs((
int64_t)x.
i - y.
i) <= max_ulp)
445 for (
i = 0;
i <
len;
i++) {
458 fprintf(stderr,
"test failed comparing %g with %g (abs diff=%g with EPS=%g)\n",
a,
b, abs_diff, eps);
468 for (
i = 0;
i <
len;
i++) {
481 unsigned max_ulp,
unsigned len)
485 for (
i = 0;
i <
len;
i++) {
494 double abs_diff =
fabs(
a -
b);
496 return abs_diff < eps;
504 for (
i = 0;
i <
len;
i++) {
517 #if HAVE_SETCONSOLETEXTATTRIBUTE && HAVE_GETSTDHANDLE
519 static WORD org_attributes;
522 CONSOLE_SCREEN_BUFFER_INFO con_info;
523 con = GetStdHandle(STD_ERROR_HANDLE);
524 if (con && con != INVALID_HANDLE_VALUE && GetConsoleScreenBufferInfo(con, &con_info)) {
525 org_attributes = con_info.wAttributes;
531 SetConsoleTextAttribute(con, (org_attributes & 0xfff0) | (
color & 0x0f));
534 const char *term = getenv(
"TERM");
538 fprintf(stderr,
"\x1b[%d;3%dm", (
color & 0x08) >> 3,
color & 0x07);
542 vfprintf(stderr, fmt,
arg);
546 #if HAVE_SETCONSOLETEXTATTRIBUTE && HAVE_GETSTDHANDLE
547 SetConsoleTextAttribute(con, org_attributes);
549 fprintf(stderr,
"\x1b[0m");
574 void *ptr = calloc(1,
size);
576 fprintf(stderr,
"checkasm: malloc failed\n");
590 return cpus[
i].suffix;
597 return *(
const uint16_t*)
a - *(
const uint16_t*)
b;
603 uint16_t nops[10000];
608 for (
i = 0;
i < 10000;
i++) {
614 qsort(nops, 10000,
sizeof(uint16_t),
cmp_nop);
615 for (
i = 2500;
i < 7500;
i++)
618 return nop_sum / 500;
647 const char sep =
state.csv ?
',' :
'\t';
648 printf(
"%s%c%s%c%.1f\n",
f->name, sep,
652 const int pad_length = 10 + 50 -
654 const double ratio = decicycles ?
655 baseline / decicycles : 0.0;
657 decicycles / 10.0, ratio);
660 }
while ((v = v->
next));
669 const char *start =
a;
670 int ascii_diff, digit_diff;
672 for (; !(ascii_diff = *(
const unsigned char*)
a - *(
const unsigned char*)
b) && *
a;
a++,
b++);
685 f->child[dir^1] =
r->child[dir];
692 #define is_red(f) ((f) && !(f)->color)
701 f->child[0]->color =
f->child[1]->color = 1;
722 if (!
f->versions.func)
727 int name_length = strlen(
name);
729 memcpy(
f->name,
name, name_length + 1);
740 #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
744 if (!
state.catch_signals)
745 return EXCEPTION_CONTINUE_SEARCH;
747 switch (e->ExceptionRecord->ExceptionCode) {
748 case EXCEPTION_FLT_DIVIDE_BY_ZERO:
749 case EXCEPTION_INT_DIVIDE_BY_ZERO:
752 case EXCEPTION_ILLEGAL_INSTRUCTION:
753 case EXCEPTION_PRIV_INSTRUCTION:
756 case EXCEPTION_ACCESS_VIOLATION:
757 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
758 case EXCEPTION_DATATYPE_MISALIGNMENT:
759 case EXCEPTION_STACK_OVERFLOW:
762 case EXCEPTION_IN_PAGE_ERROR:
766 return EXCEPTION_CONTINUE_SEARCH;
768 state.catch_signals = 0;
770 return EXCEPTION_CONTINUE_EXECUTION;
773 #elif !defined(_WASI_EMULATED_SIGNAL)
778 .sa_flags = SA_RESETHAND,
782 if (
state.catch_signals) {
783 state.catch_signals = 0;
793 const char *wild = strchr(pattern,
'*');
795 const size_t len = wild - pattern;
796 if (strncmp(str, pattern,
len))
return 1;
797 while (*++wild ==
'*');
798 if (!*wild)
return 0;
803 return strcmp(str, pattern);
809 int old_cpu_flag =
state.cpu_flag;
811 flag |= old_cpu_flag;
816 if (!
flag ||
state.cpu_flag != old_cpu_flag) {
832 if (
state.cpu_flag_name) {
838 #if CONFIG_LINUX_PERF
839 static int bench_init_linux(
void)
841 struct perf_event_attr attr = {
842 .type = PERF_TYPE_HARDWARE,
843 .size =
sizeof(
struct perf_event_attr),
844 .
config = PERF_COUNT_HW_CPU_CYCLES,
853 fprintf(stderr,
"benchmarking with Linux Perf Monitoring API\n");
855 state.sysfd = syscall(__NR_perf_event_open, &attr, 0, -1, -1, 0);
856 if (
state.sysfd == -1) {
857 perror(
"perf_event_open");
862 #elif CONFIG_MACOS_KPERF
863 static int bench_init_kperf(
void)
877 fprintf(stderr,
"checkasm: unable to execute platform specific timer\n");
880 fprintf(stderr,
"benchmarking with native FFmpeg timers\n");
883 fprintf(stderr,
"checkasm: --bench is not supported on your system\n");
891 #if CONFIG_LINUX_PERF
892 int ret = bench_init_linux();
893 #elif CONFIG_MACOS_KPERF
894 int ret = bench_init_kperf();
902 fprintf(stderr,
"nop: %d.%d\n",
state.nop_time/10,
state.nop_time%10);
908 #if CONFIG_LINUX_PERF
916 "Usage: %s [options...] [seed]\n"
917 " --test=<pattern> Run specific test.\n"
918 " --bench Run benchmark.\n"
919 " --csv, --tsv Output results in rows of comma or tab separated values.\n"
920 " --runs=<ptwo> Manual number of benchmark iterations to run 2**<ptwo>.\n"
921 " --verbose Increase verbosity.\n",
926 int main(
int argc,
char *argv[])
930 char arch_info_buf[50] =
"";
933 #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
936 #elif !defined(_WASI_EMULATED_SIGNAL)
942 #if HAVE_PRCTL && defined(PR_SET_UNALIGN)
943 prctl(PR_SET_UNALIGN, PR_UNALIGN_SIGBUS);
945 #if ARCH_ARM && HAVE_ARMV5TE_EXTERNAL
947 checkasm_checked_call = checkasm_checked_call_vfp;
951 fprintf(stderr,
"checkasm: no tests to perform\n");
955 for (
i = 1;
i < argc;
i++) {
956 const char *
arg = argv[
i];
960 if (!strncmp(
arg,
"--bench", 7)) {
965 state.bench_pattern_len = strlen(
state.bench_pattern);
967 state.bench_pattern =
"*";
968 }
else if (!strncmp(
arg,
"--test=", 7)) {
970 }
else if (!strcmp(
arg,
"--csv")) {
972 }
else if (!strcmp(
arg,
"--tsv")) {
974 }
else if (!strcmp(
arg,
"--verbose") || !strcmp(
arg,
"-v")) {
976 }
else if (!strncmp(
arg,
"--runs=", 7)) {
977 l = strtoul(
arg + 7, &end, 10);
980 fprintf(stderr,
"checkasm: error: runs exponent must be within the range 0 <= 30\n");
985 return usage(argv[0]);
987 }
else if ((l = strtoul(
arg, &end, 10)) <= UINT_MAX &&
991 return usage(argv[0]);
995 #if ARCH_AARCH64 && HAVE_SVE
997 snprintf(arch_info_buf,
sizeof(arch_info_buf),
998 "SVE %d bits, ", 8 * ff_aarch64_sve_length());
999 #elif ARCH_RISCV && HAVE_RVV
1001 snprintf(arch_info_buf,
sizeof (arch_info_buf),
1002 "%zu-bit vectors, ", 8 * ff_get_rv_vlenb());
1004 fprintf(stderr,
"checkasm: %susing random seed %u\n", arch_info_buf,
seed);
1007 if (
state.bench_pattern)
1011 for (
i = 0;
cpus[
i].flag;
i++)
1014 if (
state.num_failed) {
1015 fprintf(stderr,
"checkasm: %d of %d tests have failed\n",
state.num_failed,
state.num_checked);
1018 fprintf(stderr,
"checkasm: all %d tests passed\n",
state.num_checked);
1019 if (
state.bench_pattern) {
1044 if (!
func || name_length <= 0 || name_length >=
sizeof(name_buf))
1048 state.funcs->color = 1;
1049 v = &
state.current_func->versions;
1062 }
while ((v = v->
next));
1070 state.current_func_ver = v;
1073 state.num_checked++;
1081 return !
state.num_failed &&
state.bench_pattern &&
1089 if (
state.current_func_ver &&
state.current_func_ver->cpu &&
1090 state.current_func_ver->ok)
1095 fprintf(stderr,
" %s_%s (",
state.current_func->name,
cpu_suffix(
state.current_func_ver->cpu));
1097 vfprintf(stderr, msg,
arg);
1099 fprintf(stderr,
")\n");
1101 state.current_func_ver->ok = 0;
1104 return state.verbose;
1108 state.catch_signals = enabled;
1117 s == SIGILL ?
"illegal instruction" :
1118 s == SIGBUS ?
"bus error" :
1119 "segmentation fault");
1129 memset(perf, 0,
sizeof(*perf));
1137 static int prev_checked, prev_failed, max_length;
1139 if (
state.num_checked > prev_checked) {
1140 int pad_length = max_length + 4;
1144 pad_length -= fprintf(stderr,
" - %s.",
state.current_test_name);
1146 pad_length -= vfprintf(stderr,
name,
arg);
1148 fprintf(stderr,
"%*c",
FFMAX(pad_length, 0) + 2,
'[');
1150 if (
state.num_failed == prev_failed)
1154 fprintf(stderr,
"]\n");
1156 prev_checked =
state.num_checked;
1157 prev_failed =
state.num_failed;
1158 }
else if (!
state.cpu_flag) {
1160 int length = strlen(
state.current_test_name);
1167 if (length > max_length)
1168 max_length = length;
1173 const char *
name,
int w,
int h,
1181 fprintf(stderr,
"%s (%dx%d):\n",
name,
w,
h);
1185 #define DEF_CHECKASM_CHECK_FUNC(type, fmt) \
1186 int checkasm_check_##type(const char *file, int line, \
1187 const type *buf1, ptrdiff_t stride1, \
1188 const type *buf2, ptrdiff_t stride2, \
1189 int w, int h, const char *name, \
1190 int align_w, int align_h, \
1193 int64_t aligned_w = (w - 1LL + align_w) & ~(align_w - 1); \
1194 int64_t aligned_h = (h - 1LL + align_h) & ~(align_h - 1); \
1197 av_assert0(aligned_w == (int32_t)aligned_w);\
1198 av_assert0(aligned_h == (int32_t)aligned_h);\
1199 stride1 /= sizeof(*buf1); \
1200 stride2 /= sizeof(*buf2); \
1201 for (y = 0; y < h; y++) \
1202 if (memcmp(&buf1[y*stride1], &buf2[y*stride2], w*sizeof(*buf1))) \
1205 if (check_err(file, line, name, w, h, &err)) \
1207 for (y = 0; y < h; y++) { \
1208 for (int x = 0; x < w; x++) \
1209 fprintf(stderr, " " fmt, buf1[x]); \
1210 fprintf(stderr, " "); \
1211 for (int x = 0; x < w; x++) \
1212 fprintf(stderr, " " fmt, buf2[x]); \
1213 fprintf(stderr, " "); \
1214 for (int x = 0; x < w; x++) \
1215 fprintf(stderr, "%c", buf1[x] != buf2[x] ? 'x' : '.'); \
1218 fprintf(stderr, "\n"); \
1220 buf1 -= h*stride1; \
1221 buf2 -= h*stride2; \
1223 for (y = -padding; y < 0; y++) \
1224 if (memcmp(&buf1[y*stride1 - padding], &buf2[y*stride2 - padding], \
1225 (w + 2*padding)*sizeof(*buf1))) { \
1226 if (check_err(file, line, name, w, h, &err)) \
1228 fprintf(stderr, " overwrite above\n"); \
1231 for (y = aligned_h; y < aligned_h + padding; y++) \
1232 if (memcmp(&buf1[y*stride1 - padding], &buf2[y*stride2 - padding], \
1233 (w + 2*padding)*sizeof(*buf1))) { \
1234 if (check_err(file, line, name, w, h, &err)) \
1236 fprintf(stderr, " overwrite below\n"); \
1239 for (y = 0; y < h; y++) \
1240 if (memcmp(&buf1[y*stride1 - padding], &buf2[y*stride2 - padding], \
1241 padding*sizeof(*buf1))) { \
1242 if (check_err(file, line, name, w, h, &err)) \
1244 fprintf(stderr, " overwrite left\n"); \
1247 for (y = 0; y < h; y++) \
1248 if (memcmp(&buf1[y*stride1 + aligned_w], &buf2[y*stride2 + aligned_w], \
1249 padding*sizeof(*buf1))) { \
1250 if (check_err(file, line, name, w, h, &err)) \
1252 fprintf(stderr, " overwrite right\n"); \
void checkasm_check_nlmeans(void)
void checkasm_check_sw_gbrp(void)
void av_force_cpu_flags(int arg)
Disables cpu detection and forces the specified flags.
void checkasm_check_vp8dsp(void)
void checkasm_check_blockdsp(void)
#define AV_CPU_FLAG_SSE3
Prescott SSE3 functions.
void checkasm_check_fdctdsp(void)
static void destroy_func_tree(CheckasmFunc *f)
void checkasm_check_videodsp(void)
static int cmp_nop(const void *a, const void *b)
void checkasm_check_vf_eq(void)
#define AV_CPU_FLAG_RVB_BASIC
Basic bit-manipulations.
static int wildstrcmp(const char *str, const char *pattern)
av_cold void av_lfg_init(AVLFG *c, unsigned int seed)
#define u(width, name, range_min, range_max)
void checkasm_check_alacdsp(void)
void checkasm_check_v210dec(void)
int float_near_abs_eps_array(const float *a, const float *b, float eps, unsigned len)
#define AV_CPU_FLAG_SSE3SLOW
SSE3 supported, but usually not faster.
void checkasm_check_sw_yuv2yuv(void)
int checkasm_fail_func(const char *msg,...)
const char * bench_pattern
#define AV_CPU_FLAG_RV_ZVBB
Vector basic bit-manipulations.
void checkasm_check_hevc_idct(void)
void checkasm_check_sw_scale(void)
struct CheckasmFunc * child[2]
void checkasm_check_afir(void)
static void print_cpu_name(void)
#define AV_CPU_FLAG_3DNOW
AMD 3DNOW.
int float_near_abs_eps(float a, float b, float eps)
void checkasm_check_aacpsdsp(void)
static void bench_uninit(void)
#define AV_CPU_FLAG_DOTPROD
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
static const char * cpu_suffix(int cpu)
void checkasm_check_llviddspenc(void)
void checkasm_check_h264dsp(void)
static void color_printf(int color, const char *fmt,...)
#define AV_CPU_FLAG_RVV_F64
Vectors of double's.
uint32_t av_get_random_seed(void)
Get a seed to use in conjunction with random functions.
int main(int argc, char *argv[])
void checkasm_check_motion(void)
void checkasm_check_h263dsp(void)
#define AV_CPU_FLAG_RVB
B (bit manipulations)
#define AV_CPU_FLAG_SSSE3
Conroe SSSE3 functions.
int double_near_abs_eps(double a, double b, double eps)
const char * current_test_name
static CheckasmFunc * rotate_tree(CheckasmFunc *f, int dir)
#define AV_CPU_FLAG_XOP
Bulldozer XOP functions.
void checkasm_check_vp9dsp(void)
void checkasm_check_vf_threshold(void)
void checkasm_check_vf_gblur(void)
#define AV_CPU_FLAG_3DNOWEXT
AMD 3DNowExt.
int float_near_abs_eps_ulp(float a, float b, float eps, unsigned max_ulp)
void checkasm_check_vvc_mc(void)
#define AV_CPU_FLAG_VSX
ISA 2.06.
static __device__ float fabsf(float a)
void checkasm_check_sw_yuv2rgb(void)
#define AV_CPU_FLAG_RVV_F32
Vectors of float's */.
void checkasm_check_float_dsp(void)
#define AV_CPU_FLAG_AVX512
AVX-512 functions: requires OS support even if YMM/ZMM registers aren't used.
static int bench_init(void)
void checkasm_check_pixblockdsp(void)
#define FF_ARRAY_ELEMS(a)
void checkasm_check_vf_bwdif(void)
void checkasm_report(const char *name,...)
static CheckasmFunc * get_func(CheckasmFunc **root, const char *name)
void checkasm_check_sw_rgb(void)
void checkasm_check_hevc_sao(void)
#define AV_CPU_FLAG_ARMV6
#define AV_CPU_FLAG_SSE4
Penryn SSE4.1 functions.
void checkasm_check_hevc_pel(void)
void checkasm_set_signal_handler_state(int enabled)
static __device__ float fabs(float a)
static int measure_nop_time(void)
void checkasm_check_takdsp(void)
int double_near_abs_eps_array(const double *a, const double *b, double eps, unsigned len)
#define AV_CPU_FLAG_AVX512ICL
F/CD/BW/DQ/VL/VNNI/IFMA/VBMI/VBMI2/VPOPCNTDQ/BITALG/GFNI/VAES/VPCLMULQDQ.
void checkasm_check_fmtconvert(void)
#define checkasm_load_context(s)
#define checkasm_save_context()
void checkasm_check_aacencdsp(void)
void checkasm_check_vorbisdsp(void)
#define AV_CPU_FLAG_CMOV
supports cmov instruction
av_cold void CBS_FUNC() close(CodedBitstreamContext **ctx_ptr)
Close a context and free all internal state.
#define AV_CPU_FLAG_ALTIVEC
standard
void checkasm_check_rv40dsp(void)
static void print_benchs(CheckasmFunc *f)
CheckasmFunc * current_func
void checkasm_check_vc1dsp(void)
volatile sig_atomic_t catch_signals
void checkasm_check_h264chroma(void)
#define AV_CPU_FLAG_SSE2
PIV SSE2 functions.
Context structure for the Lagged Fibonacci PRNG.
void checkasm_check_llauddsp(void)
#define AV_CPU_FLAG_AVX
AVX functions: requires OS support even if YMM registers aren't used.
#define AV_CPU_FLAG_FMA4
Bulldozer FMA4 functions.
#define AV_CPU_FLAG_AVX2
AVX2 functions: requires OS support even if YMM registers aren't used.
void checkasm_check_llviddsp(void)
int checkasm_handle_signal(int s)
#define AV_CPU_FLAG_SSE2SLOW
SSE2 supported, but usually not faster.
void checkasm_check_diracdsp(void)
#define DEF_CHECKASM_CHECK_FUNC(type, fmt)
printf("static const uint8_t my_array[100] = {\n")
static av_always_inline int cmp(MPVEncContext *const s, const int x, const int y, const int subx, const int suby, const int size, const int h, int ref_index, int src_index, me_cmp_func cmp_func, me_cmp_func chroma_cmp_func, const int flags)
compares a block (either a full macroblock or a partition thereof) against a proposed motion-compensa...
void checkasm_check_h264pred(void)
static av_const int av_isdigit(int c)
Locale-independent conversion of ASCII isdigit.
#define AV_CPU_FLAG_FMA3
Haswell FMA3 functions.
The reader does not expect b to be semantically here and if the code is changed by maybe adding a a division or other the signedness will almost certainly be mistaken To avoid this confusion a new type was SUINT is the C unsigned type but it holds a signed int to use the same example SUINT a
void checkasm_check_huffyuvdsp(void)
int float_near_abs_eps_array_ulp(const float *a, const float *b, float eps, unsigned max_ulp, unsigned len)
CheckasmPerf * checkasm_get_perf_context(void)
void checkasm_check_fixed_dsp(void)
void checkasm_check_colorspace(void)
void checkasm_check_utvideodsp(void)
static int is_negative(union av_intfloat32 u)
void checkasm_check_audiodsp(void)
void checkasm_check_sw_range_convert(void)
#define AV_CPU_FLAG_RV_MISALIGNED
Fast misaligned accesses.
void checkasm_check_mpegvideoencdsp(void)
#define i(width, name, range_min, range_max)
#define AV_CPU_FLAG_SIMD128
void checkasm_check_flacdsp(void)
void * checkasm_check_func(void *func, const char *name,...)
#define AV_CPU_FLAG_SSE42
Nehalem SSE4.2 functions.
void checkasm_check_idctdsp(void)
struct CheckasmFuncVersion * next
#define AV_CPU_FLAG_RVV_I32
Vectors of 8/16/32-bit int's */.
void checkasm_check_synth_filter(void)
static int cmp_func_names(const char *a, const char *b)
#define AV_CPU_FLAG_ARMV8
void checkasm_check_lpc(void)
void checkasm_check_g722dsp(void)
void checkasm_check_ac3dsp(void)
#define AV_CPU_FLAG_ATOM
Atom processor, some SSSE3 instructions are slower.
void checkasm_check_svq1enc(void)
void checkasm_check_vf_hflip(void)
void checkasm_check_lls(void)
void checkasm_check_blend(void)
#define AV_CPU_FLAG_VFPV3
void checkasm_check_bswapdsp(void)
checkasm_context checkasm_context_buf
#define AV_CPU_FLAG_ARMV5TE
#define AV_CPU_FLAG_MMX
standard MMX
static void * checkasm_malloc(size_t size)
static const struct @487 cpus[]
#define AV_CPU_FLAG_RVI
I (full GPR bank)
void checkasm_check_h264qpel(void)
static void signal_handler(int s)
#define AV_CPU_FLAG_AESNI
Advanced Encryption Standard functions.
int checkasm_bench_func(void)
static const struct @486 tests[]
#define AV_CPU_FLAG_POWER8
ISA 2.07.
const char * cpu_flag_name
void checkasm_check_vf_sobel(void)
#define AV_CPU_FLAG_SSE
SSE functions.
static int ref[MAX_W *MAX_W]
int float_near_ulp_array(const float *a, const float *b, unsigned max_ulp, unsigned len)
static const struct sigaction signal_handler_act
#define AV_CPU_FLAG_MMXEXT
SSE integer functions or AMD MMX ext.
void checkasm_check_av_tx(void)
void checkasm_check_v210enc(void)
void checkasm_check_sbrdsp(void)
void checkasm_check_hevc_deblock(void)
const char * test_pattern
static int usage(const char *path)
#define AV_CPU_FLAG_VFP_VM
VFPv2 vector mode, deprecated in ARMv7-A and unavailable in various CPUs implementations.
void checkasm_check_jpeg2000dsp(void)
void checkasm_check_hevc_add_res(void)
int float_near_ulp(float a, float b, unsigned max_ulp)
CheckasmFuncVersion * current_func_ver
static void check_cpu_flag(const char *name, int flag)
sigjmp_buf checkasm_context
static int bench_init_ffmpeg(void)
void checkasm_check_rv34dsp(void)
CheckasmFuncVersion versions
static double avg_cycles_per_call(const CheckasmPerf *const p)
#define AV_CPU_FLAG_RVV_I64
Vectors of 64-bit int's */.
static int check_err(const char *file, int line, const char *name, int w, int h, int *err)
void checkasm_check_vvc_alf(void)
void checkasm_check_exrdsp(void)
static void balance_tree(CheckasmFunc **root)
#define AV_CPU_FLAG_ARMV6T2
void checkasm_check_opusdsp(void)