https://github.com/freaky/fast-bytecount
A port of the Rust bytecount SSE2 and AVX2 algorithms to C
https://github.com/freaky/fast-bytecount
Last synced: 2 months ago
JSON representation
A port of the Rust bytecount SSE2 and AVX2 algorithms to C
- Host: GitHub
- URL: https://github.com/freaky/fast-bytecount
- Owner: Freaky
- License: apache-2.0
- Created: 2019-01-10T00:29:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-09-27T16:07:39.000Z (over 2 years ago)
- Last Synced: 2026-02-15T10:54:01.472Z (4 months ago)
- Language: M4
- Homepage:
- Size: 261 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.Apache2
Awesome Lists containing this project
README
# fast-bytecount
This is a port of the AVX2 and SSE2 bytecount functions from the Rust
[bytecount] crate to C, including runtime CPU feature detection.
It isn't yet set up as a library, just a trivial benchmark against the naive
implementation.
## Usage
```
$ aclocal
$ autoconf
$ automake --add-missing
$ ./configure
$ make
$ ./bench
```
Supported `configure` flags:
* `--disable-runtime-dispatch`, enables only the scalar fallback bytecounts
* `--disable-runtime-avx2`, disable AVX2 version
* `--disable-runtime-sse2`, disable SSE2 version
[bytecount]: https://github.com/llogiq/bytecount