From: Victor Julien Date: Thu, 14 Nov 2013 12:17:18 +0000 (+0100) Subject: Add SSE support to --build-info X-Git-Tag: suricata-2.0beta2~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F638%2Fhead;p=thirdparty%2Fsuricata.git Add SSE support to --build-info --- 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