73 lines
2.2 KiB
C
Raw Normal View History

2021-10-09 15:16:34 -05:00
/*****************************************************************************
FFTRealUseTrigo.h
By Laurent de Soras
--- Legal stuff ---
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the Do What The Fuck You Want
To Public License, Version 2, as published by Sam Hocevar. See
http://sam.zoy.org/wtfpl/COPYING for more details.
*Tab=3***********************************************************************/
#if !defined(ffft_FFTRealUseTrigo_HEADER_INCLUDED)
# define ffft_FFTRealUseTrigo_HEADER_INCLUDED
2021-10-09 15:16:34 -05:00
# if defined(_MSC_VER)
# pragma once
# pragma warning(4 : 4250) // "Inherits via dominance."
# endif
2021-10-09 15:16:34 -05:00
/*\\\ INCLUDE FILES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
# include "def.h"
# include "FFTRealFixLenParam.h"
# include "OscSinCos.h"
2021-10-09 15:16:34 -05:00
namespace ffft
{
template<int ALGO>
2021-10-09 15:16:34 -05:00
class FFTRealUseTrigo
{
/*\\\ PUBLIC \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
2021-10-09 15:16:34 -05:00
public:
typedef FFTRealFixLenParam::DataType DataType;
typedef OscSinCos<DataType> OscType;
2021-10-09 15:16:34 -05:00
ffft_FORCEINLINE static void prepare(OscType &osc);
ffft_FORCEINLINE static void iterate(OscType &osc, DataType &c, DataType &s,
const DataType cos_ptr[], long index_c,
long index_s);
2021-10-09 15:16:34 -05:00
/*\\\ PROTECTED \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
2021-10-09 15:16:34 -05:00
protected:
/*\\\ PRIVATE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
2021-10-09 15:16:34 -05:00
private:
/*\\\ FORBIDDEN MEMBER FUNCTIONS \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
2021-10-09 15:16:34 -05:00
private:
FFTRealUseTrigo();
~FFTRealUseTrigo();
FFTRealUseTrigo(const FFTRealUseTrigo &other);
FFTRealUseTrigo &operator=(const FFTRealUseTrigo &other);
bool operator==(const FFTRealUseTrigo &other);
bool operator!=(const FFTRealUseTrigo &other);
2021-10-09 15:16:34 -05:00
}; // class FFTRealUseTrigo
2021-10-09 15:16:34 -05:00
} // namespace ffft
2021-10-09 15:16:34 -05:00
# include "FFTRealUseTrigo.hpp"
2021-10-09 15:16:34 -05:00
#endif // ffft_FFTRealUseTrigo_HEADER_INCLUDED
2021-10-09 15:16:34 -05:00
/*\\\ EOF \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/