Skip to content

Commit

Permalink
Version 5.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ejmahler committed May 10, 2021
1 parent f2f3d8b commit 54ec8a6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [5.1.1]
Released 10 May 2021
### Fixed
- Fixed a compile-time divide by zero error on nightly Rust in `stdarch\crates\core_arch\src\macros.rs` (Backported from v6.0.1)
- Increased the minimum version of `strength_reduce` to 0.2.3 (Backported from v6.0.1)

## [5.1.0]
Released 16 April 2021
### Added
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]

name = "rustfft"
version = "5.1.0"
version = "5.1.1"
authors = ["Allen Welkie <allen.welkie at gmail>", "Elliott Mahler <join.together at gmail>"]
edition = "2018"

Expand Down Expand Up @@ -29,7 +29,7 @@ sse = []
num-complex = "0.3"
num-traits = "0.2"
num-integer = "^0.1.40"
strength_reduce = "^0.2.1"
strength_reduce = "0.2.3"
transpose = "0.2"
primal-check = "0.3.1"

Expand Down
14 changes: 7 additions & 7 deletions src/avx/avx_vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ impl AvxVector for __m128 {
#[inline(always)]
unsafe fn transpose3_packed(rows: [Self; 3]) -> [Self; 3] {
let unpacked0 = Self::unpacklo_complex([rows[0], rows[1]]);
let blended = _mm_blend_ps(rows[0], rows[2], 0x33);
let blended = _mm_blend_ps(rows[0], rows[2], 0x03);
let unpacked2 = Self::unpackhi_complex([rows[1], rows[2]]);

[unpacked0, blended, unpacked2]
Expand All @@ -1328,7 +1328,7 @@ impl AvxVector for __m128 {
[
Self::unpacklo_complex([rows[0], rows[1]]),
Self::unpacklo_complex([rows[2], rows[3]]),
_mm_blend_ps(rows[0], rows[4], 0x33),
_mm_blend_ps(rows[0], rows[4], 0x03),
Self::unpackhi_complex([rows[1], rows[2]]),
Self::unpackhi_complex([rows[3], rows[4]]),
]
Expand Down Expand Up @@ -1576,7 +1576,7 @@ impl AvxVector for __m256d {
#[inline(always)]
unsafe fn transpose3_packed(rows: [Self; 3]) -> [Self; 3] {
let unpacked0 = Self::unpacklo_complex([rows[0], rows[1]]);
let blended = _mm256_blend_pd(rows[0], rows[2], 0x33);
let blended = _mm256_blend_pd(rows[0], rows[2], 0x03);
let unpacked2 = Self::unpackhi_complex([rows[1], rows[2]]);

[unpacked0, blended, unpacked2]
Expand All @@ -1593,7 +1593,7 @@ impl AvxVector for __m256d {
[
Self::unpacklo_complex([rows[0], rows[1]]),
Self::unpacklo_complex([rows[2], rows[3]]),
_mm256_blend_pd(rows[0], rows[4], 0x33),
_mm256_blend_pd(rows[0], rows[4], 0x03),
Self::unpackhi_complex([rows[1], rows[2]]),
Self::unpackhi_complex([rows[3], rows[4]]),
]
Expand All @@ -1614,7 +1614,7 @@ impl AvxVector for __m256d {
Self::unpacklo_complex([rows[0], rows[1]]),
Self::unpacklo_complex([rows[2], rows[3]]),
Self::unpacklo_complex([rows[4], rows[5]]),
_mm256_blend_pd(rows[0], rows[6], 0x33),
_mm256_blend_pd(rows[0], rows[6], 0x03),
Self::unpackhi_complex([rows[1], rows[2]]),
Self::unpackhi_complex([rows[3], rows[4]]),
Self::unpackhi_complex([rows[5], rows[6]]),
Expand Down Expand Up @@ -1856,11 +1856,11 @@ impl AvxVector for __m128d {

#[inline(always)]
unsafe fn swap_complex_components(self) -> Self {
_mm_permute_pd(self, 0x05)
_mm_permute_pd(self, 0x01)
}
#[inline(always)]
unsafe fn duplicate_complex_components(self) -> (Self, Self) {
(_mm_movedup_pd(self), _mm_permute_pd(self, 0x0F))
(_mm_movedup_pd(self), _mm_permute_pd(self, 0x03))
}

#[inline(always)]
Expand Down

0 comments on commit 54ec8a6

Please sign in to comment.