Skip to content

Commit

Permalink
Delete more useless code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Piolat committed Dec 17, 2023
1 parent 5e2e5c9 commit a469903
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 72 deletions.
41 changes: 5 additions & 36 deletions fft/dplug/fft/impl_double.d
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!();

41 changes: 5 additions & 36 deletions fft/dplug/fft/impl_float.d
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!();

0 comments on commit a469903

Please sign in to comment.