Skip to content

Commit 54ec8a6

Browse files
committed
Version 5.1.1
1 parent f2f3d8b commit 54ec8a6

3 files changed

Lines changed: 15 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [5.1.1]
2+
Released 10 May 2021
3+
### Fixed
4+
- Fixed a compile-time divide by zero error on nightly Rust in `stdarch\crates\core_arch\src\macros.rs` (Backported from v6.0.1)
5+
- Increased the minimum version of `strength_reduce` to 0.2.3 (Backported from v6.0.1)
6+
17
## [5.1.0]
28
Released 16 April 2021
39
### Added

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "rustfft"
4-
version = "5.1.0"
4+
version = "5.1.1"
55
authors = ["Allen Welkie <allen.welkie at gmail>", "Elliott Mahler <join.together at gmail>"]
66
edition = "2018"
77

@@ -29,7 +29,7 @@ sse = []
2929
num-complex = "0.3"
3030
num-traits = "0.2"
3131
num-integer = "^0.1.40"
32-
strength_reduce = "^0.2.1"
32+
strength_reduce = "0.2.3"
3333
transpose = "0.2"
3434
primal-check = "0.3.1"
3535

src/avx/avx_vector.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ impl AvxVector for __m128 {
13111311
#[inline(always)]
13121312
unsafe fn transpose3_packed(rows: [Self; 3]) -> [Self; 3] {
13131313
let unpacked0 = Self::unpacklo_complex([rows[0], rows[1]]);
1314-
let blended = _mm_blend_ps(rows[0], rows[2], 0x33);
1314+
let blended = _mm_blend_ps(rows[0], rows[2], 0x03);
13151315
let unpacked2 = Self::unpackhi_complex([rows[1], rows[2]]);
13161316

13171317
[unpacked0, blended, unpacked2]
@@ -1328,7 +1328,7 @@ impl AvxVector for __m128 {
13281328
[
13291329
Self::unpacklo_complex([rows[0], rows[1]]),
13301330
Self::unpacklo_complex([rows[2], rows[3]]),
1331-
_mm_blend_ps(rows[0], rows[4], 0x33),
1331+
_mm_blend_ps(rows[0], rows[4], 0x03),
13321332
Self::unpackhi_complex([rows[1], rows[2]]),
13331333
Self::unpackhi_complex([rows[3], rows[4]]),
13341334
]
@@ -1576,7 +1576,7 @@ impl AvxVector for __m256d {
15761576
#[inline(always)]
15771577
unsafe fn transpose3_packed(rows: [Self; 3]) -> [Self; 3] {
15781578
let unpacked0 = Self::unpacklo_complex([rows[0], rows[1]]);
1579-
let blended = _mm256_blend_pd(rows[0], rows[2], 0x33);
1579+
let blended = _mm256_blend_pd(rows[0], rows[2], 0x03);
15801580
let unpacked2 = Self::unpackhi_complex([rows[1], rows[2]]);
15811581

15821582
[unpacked0, blended, unpacked2]
@@ -1593,7 +1593,7 @@ impl AvxVector for __m256d {
15931593
[
15941594
Self::unpacklo_complex([rows[0], rows[1]]),
15951595
Self::unpacklo_complex([rows[2], rows[3]]),
1596-
_mm256_blend_pd(rows[0], rows[4], 0x33),
1596+
_mm256_blend_pd(rows[0], rows[4], 0x03),
15971597
Self::unpackhi_complex([rows[1], rows[2]]),
15981598
Self::unpackhi_complex([rows[3], rows[4]]),
15991599
]
@@ -1614,7 +1614,7 @@ impl AvxVector for __m256d {
16141614
Self::unpacklo_complex([rows[0], rows[1]]),
16151615
Self::unpacklo_complex([rows[2], rows[3]]),
16161616
Self::unpacklo_complex([rows[4], rows[5]]),
1617-
_mm256_blend_pd(rows[0], rows[6], 0x33),
1617+
_mm256_blend_pd(rows[0], rows[6], 0x03),
16181618
Self::unpackhi_complex([rows[1], rows[2]]),
16191619
Self::unpackhi_complex([rows[3], rows[4]]),
16201620
Self::unpackhi_complex([rows[5], rows[6]]),
@@ -1856,11 +1856,11 @@ impl AvxVector for __m128d {
18561856

18571857
#[inline(always)]
18581858
unsafe fn swap_complex_components(self) -> Self {
1859-
_mm_permute_pd(self, 0x05)
1859+
_mm_permute_pd(self, 0x01)
18601860
}
18611861
#[inline(always)]
18621862
unsafe fn duplicate_complex_components(self) -> (Self, Self) {
1863-
(_mm_movedup_pd(self), _mm_permute_pd(self, 0x0F))
1863+
(_mm_movedup_pd(self), _mm_permute_pd(self, 0x03))
18641864
}
18651865

18661866
#[inline(always)]

0 commit comments

Comments
 (0)