aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.win32
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames@darkjames.pl>2014-05-22 23:04:40 +0200
committerAnders Broman <a.broman58@gmail.com>2014-06-09 12:02:27 +0000
commitfcb710baec3caa30c2cb7c444bddbe087fc86574 (patch)
tree1ff3f1c4d9b5dca0794162a1000bede1b3a128e6 /config.h.win32
parent66695661992beb054eff219dd73a23559220c867 (diff)
Add sse4.2 optimized function ws_mempbrk_sse42()
In text protocols, like SIP, lot of time is spend guint8_pbrk(), assume that text is not binary (no NULs), and use SSE4.2 pcmpistri instruction. Also move & rename guint8_pbrk() from tvbuff.c as _ws_mempbrk. HAVE_SSE42 must be defined to use _ws_mempbrk_sse42() only activaded for Windows currently. Change-Id: Ic853d84805bdb6492c4f45d2bcc79a973fd9804e Reviewed-on: https://code.wireshark.org/review/1730 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'config.h.win32')
-rw-r--r--config.h.win323
1 files changed, 3 insertions, 0 deletions
diff --git a/config.h.win32 b/config.h.win32
index 81c961bbd4..2b7249be09 100644
--- a/config.h.win32
+++ b/config.h.win32
@@ -281,3 +281,6 @@
#if !defined(QT_VERSION) || !defined(_SSIZE_T_DEFINED)
typedef int ssize_t;
#endif
+
+/* to use define _ws_mempbrk_sse42 if available (checked with cpuinfo) */
+#define HAVE_SSE42 1 \ No newline at end of file