-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Guillaume Piolat
committed
Dec 17, 2023
1 parent
5e2e5c9
commit a469903
Showing
2 changed files
with
10 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,16 @@ | ||
// Copyright Jernej Krempuš 2012 | ||
// Copyright Guillaume Piolat 2016-2023 | ||
// Distributed under the Boost Software License, Version 1.0. | ||
// (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
module dplug.fft.impl_double; | ||
import dplug.fft.fft_impl; | ||
|
||
//version = SSE_AVX; // only backend supported in this fork | ||
|
||
version(SSE_AVX) | ||
{ | ||
import sse = pfft.sse_double, avx = pfft.avx_double, pfft.detect_avx; | ||
|
||
alias get implementation; | ||
alias TypeTuple!(FFT!(sse.Vector, sse.Options), avx) FFTs; | ||
} | ||
else | ||
{ | ||
version(Scalar) | ||
{ | ||
import dplug.fft.scalar_double; | ||
} | ||
else version(Neon) | ||
{ | ||
import dplug.fft.neon_double; | ||
} | ||
else version(StdSimd) | ||
{ | ||
import dplug.fft.stdsimd; | ||
} | ||
else version(AVX) | ||
{ | ||
import dplug.fft.avx_double; | ||
} | ||
else | ||
{ | ||
import dplug.fft.sse_double; | ||
} | ||
|
||
alias FFT!(Vector,Options) F; | ||
alias TypeTuple!F FFTs; | ||
enum implementation = 0; | ||
} | ||
import dplug.fft.sse_double; | ||
alias FFT!(Vector,Options) F; | ||
alias TypeTuple!F FFTs; | ||
enum implementation = 0; | ||
|
||
mixin Instantiate!(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,15 @@ | ||
// Copyright Jernej Krempuš 2012 | ||
// Copyright Guillaume Piolat 2016-2023 | ||
// Distributed under the Boost Software License, Version 1.0. | ||
// (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
module dplug.fft.impl_float; | ||
import dplug.fft.fft_impl; | ||
|
||
//version = SSE_AVX; // only version supported by this fork | ||
|
||
version(SSE_AVX) | ||
{ | ||
import sse = pfft.sse_float, avx = pfft.avx_float, pfft.detect_avx; | ||
|
||
alias get implementation; | ||
alias TypeTuple!(FFT!(sse.Vector, sse.Options), avx) FFTs; | ||
} | ||
else | ||
{ | ||
version(Scalar) | ||
{ | ||
import dplug.fft.scalar_float; | ||
} | ||
else version(Neon) | ||
{ | ||
import dplug.fft.neon_float; | ||
} | ||
else version(StdSimd) | ||
{ | ||
import dplug.fft.stdsimd; | ||
} | ||
else version(AVX) | ||
{ | ||
import dplug.fft.avx_float; | ||
} | ||
else | ||
{ | ||
import dplug.fft.sse_float; | ||
} | ||
|
||
alias FFT!(Vector,Options) F; | ||
alias TypeTuple!F FFTs; | ||
enum implementation = 0; | ||
} | ||
import dplug.fft.sse_float; | ||
alias FFT!(Vector,Options) F; | ||
alias TypeTuple!F FFTs; | ||
enum implementation = 0; | ||
|
||
mixin Instantiate!(); |