# std.mem: expose the simpler linear functions · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/b0684bf084dbb5fe9ad7fb75dacf24cbd0a17231)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: b0684bf084dbb5fe9ad7fb75dacf24cbd0a17231

Requested commit: b0684bf084dbb5fe9ad7fb75dacf24cbd0a17231

Commit: b0684bf084dbb5fe9ad7fb75dacf24cbd0a17231

Tree: b2e5bfe30168420a7a28f5c9c8dc8ce1e038e64f

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.mem: expose the simpler linear functions

The new defaults that came in with
644400054c5769a397ded4f569e2ac0600d65305 are nice, however, it is still
possible that someone knows their inputs are always small and wants to
use the simpler implementations. We keep the default to make the choice
at runtime, but expose the linear functions in the public interface of
std.mem.

Also improved the doc comments.

```

## Parents

- [644400054c5769a397ded4f569e2ac0600d65305](https://git.cafe/gitcafe/zig/commit/644400054c5769a397ded4f569e2ac0600d65305?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/b0684bf084dbb5fe9ad7fb75dacf24cbd0a17231?format=markdown)
