File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1411,6 +1411,16 @@ static unsigned find_hash(const char* name)
1411
1411
return 0 ;
1412
1412
}
1413
1413
1414
+ /**
1415
+ * Detect and print CPU features.
1416
+ */
1417
+ static void print_cpu_features (void )
1418
+ {
1419
+ printf ("CPU:%s%s\n" ,
1420
+ (has_cpu_feature (CPU_FEATURE_SSE4_2 ) ? " SSE_4.2" : "" ),
1421
+ (has_cpu_feature (CPU_FEATURE_SHANI ) ? " SHANI" : "" ));
1422
+ }
1423
+
1414
1424
/**
1415
1425
* Print status of OpenSSL plugin.
1416
1426
*/
@@ -1492,6 +1502,7 @@ int main(int argc, char* argv[])
1492
1502
test_generic_assumptions ();
1493
1503
if (print_info ) {
1494
1504
printf ("%s" , compiler_flags );
1505
+ print_cpu_features ();
1495
1506
print_openssl_status ();
1496
1507
} else if (test_speed ) {
1497
1508
test_known_strings (hash_id );
Original file line number Diff line number Diff line change @@ -312,6 +312,12 @@ char* compiler_flags = "Compile-time flags:"
312
312
#endif
313
313
314
314
/* cpu features */
315
+ #ifdef HAS_GCC_INTEL_CPUID
316
+ " HAS_GCC_INTEL_CPUID"
317
+ #endif
318
+ #ifdef HAS_MSVC_INTEL_CPUID
319
+ " HAS_MSVC_INTEL_CPUID"
320
+ #endif
315
321
#ifdef CPU_X64
316
322
" CPU_X64"
317
323
#endif
You can’t perform that action at this time.
0 commit comments