Wireshark-commits: [Wireshark-commits] master fcb710b: Add sse4.2 optimized function ws_mempbrk_sse
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=fcb710baec3caa30c2cb7c444bddbe087fc86574
Submitter: Anders Broman (a.broman58@xxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
fcb710b by Jakub Zawadzki (darkjames@xxxxxxxxxxxx):
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@xxxxxxxxx>
Actions performed:
from 6669566 Try to fix acket-tftp.c:207: error: \u2018data_tvb\u2019 may be used uninitialized in this function.
adds fcb710b Add sse4.2 optimized function ws_mempbrk_sse42()
Summary of changes:
config.h.win32 | 3 +
epan/tvbuff.c | 29 ++++---
wsutil/Makefile.am | 11 +++
wsutil/Makefile.common | 1 +
wsutil/Makefile.nmake | 3 +-
wsutil/ws_mempbrk.c | 74 ++++++++++++++++++
wsutil/ws_mempbrk_sse42.c | 188 +++++++++++++++++++++++++++++++++++++++++++++
7 files changed, 292 insertions(+), 17 deletions(-)
create mode 100644 wsutil/ws_mempbrk.c
create mode 100644 wsutil/ws_mempbrk_sse42.c