mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 00:51:37 +00:00
checkasm: Print the SVE vector length at startup
Signed-off-by: Martin Storsjö <martin@martin.st> Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
8f1063c1a6
commit
e5a14ae4e6
@ -94,6 +94,10 @@
|
||||
#define isatty(fd) 1
|
||||
#endif
|
||||
|
||||
#if ARCH_AARCH64
|
||||
#include "libavutil/aarch64/cpu.h"
|
||||
#endif
|
||||
|
||||
#if ARCH_ARM && HAVE_ARMV5TE_EXTERNAL
|
||||
#include "libavutil/arm/cpu.h"
|
||||
|
||||
@ -917,6 +921,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
unsigned int seed = av_get_random_seed();
|
||||
int i, ret = 0;
|
||||
char arch_info_buf[50] = "";
|
||||
|
||||
#ifdef _WIN32
|
||||
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
||||
@ -981,7 +986,12 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
fprintf(stderr, "checkasm: using random seed %u\n", seed);
|
||||
#if ARCH_AARCH64 && HAVE_SVE
|
||||
if (have_sve(av_get_cpu_flags()))
|
||||
snprintf(arch_info_buf, sizeof(arch_info_buf),
|
||||
"SVE %d bits, ", 8 * ff_aarch64_sve_length());
|
||||
#endif
|
||||
fprintf(stderr, "checkasm: %susing random seed %u\n", arch_info_buf, seed);
|
||||
av_lfg_init(&checkasm_lfg, seed);
|
||||
|
||||
if (state.bench_pattern)
|
||||
|
Loading…
Reference in New Issue
Block a user