You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib.rs
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -13,24 +13,26 @@ with less code duplication.
13
13
## Cargo features
14
14
15
15
Two cargo features can be optionally enabled:
16
-
- With the __`packed_simd`__ feature enabled, the `simba::simd` module will export several SIMD types like `f32x2`,
17
-
`f64x4`, `i32i8`, `u16i16`, etc. There types are wrappers around the SIMD types from the [__packed_simd__
18
-
crate](https://docs.rs/packed_simd). This requires a nightly compiler.
16
+
- With the __`portable_simd`__ feature enabled, the `simba::simd` module will export several SIMD types like `f32x2`,
17
+
`f64x4`, `i32i8`, `u16i16`, etc. There types are wrappers around the SIMD types from the experimental [std::simd](https://doc.rust-lang.org/std/simd/index.html)
18
+
implementation. This requires a nightly compiler and might break after updating the compiler nightly version.
19
19
- With the __`wide`__ feature enabled, the `simba::simd` module will export the `WideF32x4` and `WideBoolF32x4`
20
20
types. The types are wrappers around the `wide::f32x4` type from the [__wide__ crate](https://docs.rs/wide).
21
21
This will work with both a stable or nightly compiler.
22
22
23
23
If none of those features are enabled, __simba__ will still define all the scalar and SIMD traits.
24
24
However, the SIMD traits won't be implemented for any SIMD types. Therefore it is recommended to:
25
-
- Use the `packed_simd` feature if you want more features, and can afford to use a nightly compiler.
25
+
- Use the `portable_simd` feature if you want more features, and can afford to use a nightly compiler.
26
26
- Use the `wide` feature if you only need 4-lanes 32-bits floats, and can't afford to use a nightly compiler.
0 commit comments