mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-25 18:40:19 -04:00
Print the CPU architecture in the speed test
This commit is contained in:
parent
cd2d4c4734
commit
f878ff217c
1 changed files with 18 additions and 1 deletions
|
|
@ -126,14 +126,31 @@ void speed(int period, int nd, int size)
|
|||
raid_cpu_has_slowextendedreg() ? " slowext" : ""
|
||||
);
|
||||
}
|
||||
#elif defined(__aarch64__) || defined(_M_ARM64)
|
||||
printf("CPU 64-bit ARM (AArch64)\n");
|
||||
#elif defined(__arm__) || defined(_M_ARM)
|
||||
printf("CPU 32-bit ARM\n");
|
||||
#elif defined(__powerpc64__)
|
||||
printf("CPU 64-bit PowerPC\n");
|
||||
#elif defined(__powerpc__)
|
||||
printf("CPU 32-bit PowerPC\n");
|
||||
#elif defined(__riscv)
|
||||
printf("CPU RISC-V\n",
|
||||
#elif defined(__s390x__)
|
||||
printf("CPU 64-bit IBM Z / s390x\n");
|
||||
#else
|
||||
printf("CPU is not a x86/x64\n");
|
||||
printf("CPU of unknown architecture\n");
|
||||
#endif
|
||||
#if WORDS_BIGENDIAN
|
||||
printf("Memory is big-endian %d-bit\n", (int)sizeof(void*) * 8);
|
||||
#else
|
||||
printf("Memory is little-endian %d-bit\n", (int)sizeof(void*) * 8);
|
||||
#endif
|
||||
#if defined(__SIZEOF_INT128__)
|
||||
printf("128-bit integers are supported\n");
|
||||
#else
|
||||
printf("128-bit integers are not supported\n");
|
||||
#endif
|
||||
|
||||
#if HAVE_FUTIMENS
|
||||
printf("Support nanosecond timestamps with futimens()\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue