Merge pull request #446 from AquaEBM/master
add rustc_const_unstable attribute to Simd::splat
This commit is contained in:
commit
49176aebc6
1 changed files with 1 additions and 0 deletions
|
|
@ -144,6 +144,7 @@ where
|
|||
/// assert_eq!(v.as_array(), &[8, 8, 8, 8]);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[rustc_const_unstable(feature = "portable_simd", issue = "86656")]
|
||||
pub const fn splat(value: T) -> Self {
|
||||
const fn splat_const<T, const N: usize>(value: T) -> Simd<T, N>
|
||||
where
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue