An open API service indexing awesome lists of open source software.

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

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