From a84c502e50645a3d9efe95206f6b6588ac95e84b Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 14 Nov 2013 13:17:18 +0100 Subject: [PATCH] Add SSE support to --build-info --- src/suricata.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/suricata.c b/src/suricata.c index 9cb54faf2c..0ac817f002 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -643,6 +643,25 @@ void SCPrintBuildInfo(void) { printf("Features: %s\n", features); + /* SIMD stuff */ + memset(features, 0x00, sizeof(features)); +#if defined(__SSE4_2__) + strlcat(features, "SSE_4_2 ", sizeof(features)); +#endif +#if defined(__SSE4_1__) + strlcat(features, "SSE_4_1 ", sizeof(features)); +#endif +#if defined(__SSE3__) + strlcat(features, "SSE_3 ", sizeof(features)); +#endif +#if defined(__tile__) + strlcat(features, "Tilera ", sizeof(features)); +#endif + if (strlen(features) == 0) { + strlcat(features, "none", sizeof(features)); + } + printf("SIMD support: %s\n", features); + #if __WORDSIZE == 64 bits = "64-bits"; #elif __WORDSIZE == 32 -- 2.47.2