Update docs with powers-of-two
This commit is contained in:
@@ -11,7 +11,7 @@ This will cause an error:
|
||||
#![feature(repr_simd)]
|
||||
|
||||
#[repr(simd)]
|
||||
struct Bad<T>(T, T, T);
|
||||
struct Bad<T>(T, T, T, T);
|
||||
```
|
||||
|
||||
This will not:
|
||||
@@ -20,5 +20,5 @@ This will not:
|
||||
#![feature(repr_simd)]
|
||||
|
||||
#[repr(simd)]
|
||||
struct Good(u32, u32, u32);
|
||||
struct Good(u32, u32, u32, u32);
|
||||
```
|
||||
|
||||
@@ -7,7 +7,7 @@ Erroneous code example:
|
||||
#![feature(repr_simd)]
|
||||
|
||||
#[repr(simd)]
|
||||
struct Bad(u16, u32, u32); // error!
|
||||
struct Bad(u16, u32, u32 u32); // error!
|
||||
```
|
||||
|
||||
When using the `#[simd]` attribute to automatically use SIMD operations in tuple
|
||||
@@ -20,5 +20,5 @@ Fixed example:
|
||||
#![feature(repr_simd)]
|
||||
|
||||
#[repr(simd)]
|
||||
struct Good(u32, u32, u32); // ok!
|
||||
struct Good(u32, u32, u32, u32); // ok!
|
||||
```
|
||||
|
||||
@@ -19,5 +19,5 @@ Fixed example:
|
||||
#![feature(repr_simd)]
|
||||
|
||||
#[repr(simd)]
|
||||
struct Good(u32, u32, u32); // ok!
|
||||
struct Good(u32, u32, u32, u32); // ok!
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user