WojciechMula / simd-byte-lookup

SIMDized check which bytes are in a set
http://0x80.pl/articles/simd-byte-lookup.html
BSD 2-Clause "Simplified" License
28 stars 3 forks source link
avx2 avx512 simd sse string-matching

================================================================================ SIMDized check which bytes are in a set

Sample programs for my article__.

__ http://0x80.pl/articles/simd-byte-lookup.html

Software

The main utility in is python script test.py. It accepts:

Please refer to Makefile for sample invocations.

The script generates a C++ program with implementation of function that checks which bytes are present in the set. The program contains unit test which validates the generated procedure.

Type make to build and run several sample programs.

Caveats

Currently only SSE instructions are supported.