Skip to content

Commit fb2ef0c

Browse files
committed
Make N a power-of-two
1 parent 2e73604 commit fb2ef0c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

reference/src/representation/vectors.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ currently different for each architecture.
1515
## Vector types
1616

1717
Vector types are `repr(simd)` homogeneous tuple-structs containing `N` elements
18-
of type `T`:
18+
of type `T` where `N` is a power-of-two:
1919

2020
```rust
2121
#[repr(simd)]
@@ -85,8 +85,6 @@ unsafe {
8585

8686
[#36]: https://github.com/rust-rfcs/unsafe-code-guidelines/issues/36
8787

88-
* Should we require `N` to be a power-of-two?
89-
9088
* `MaybeUninit<T>` does not have the same `repr` as `T`, so
9189
`MaybeUninit<Vector<T, N>>` are not `repr(simd)`, which has performance
9290
consequences and means that `MaybeUninit<Vector<T, N>>` is not C-FFI safe.

0 commit comments

Comments
 (0)