# Merge branch 'vector-element-access' · gitcafe/zig

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

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

Visibility: public

Requested revision: cb8af1c6d48d5fdb26484a070b8af069c4152049

Requested commit: cb8af1c6d48d5fdb26484a070b8af069c4152049

Commit: cb8af1c6d48d5fdb26484a070b8af069c4152049

Tree: 0c3baee6423b40eda3ba57e9d41041f6c9fbd3b8

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Merge branch 'vector-element-access'

This introduces the concept of vector index being part of a pointer
type. This avoids vectors having well-defined in-memory layout, and
allows vectors of any integer bit width to work the same way.

When a vector is indexed with a scalar, this is vector element access,
which this branch implements. When a vector is indexed with a vector,
this is gather/scatter, which is not implemented in this branch.

closes #3575
closes #3580

```

## Parents

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

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

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