FFTRealSelect.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*****************************************************************************
  2. FFTRealSelect.hpp
  3. By Laurent de Soras
  4. --- Legal stuff ---
  5. This program is free software. It comes without any warranty, to
  6. the extent permitted by applicable law. You can redistribute it
  7. and/or modify it under the terms of the Do What The Fuck You Want
  8. To Public License, Version 2, as published by Sam Hocevar. See
  9. http://sam.zoy.org/wtfpl/COPYING for more details.
  10. *Tab=3***********************************************************************/
  11. #if defined (ffft_FFTRealSelect_CURRENT_CODEHEADER)
  12. #error Recursive inclusion of FFTRealSelect code header.
  13. #endif
  14. #define ffft_FFTRealSelect_CURRENT_CODEHEADER
  15. #if ! defined (ffft_FFTRealSelect_CODEHEADER_INCLUDED)
  16. #define ffft_FFTRealSelect_CODEHEADER_INCLUDED
  17. namespace ffft
  18. {
  19. /*\\\ PUBLIC \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
  20. template <int P>
  21. float * FFTRealSelect <P>::sel_bin (float *e_ptr, float *o_ptr)
  22. {
  23. return (o_ptr);
  24. }
  25. template <>
  26. inline float * FFTRealSelect <0>::sel_bin (float *e_ptr, float *o_ptr)
  27. {
  28. return (e_ptr);
  29. }
  30. } // namespace ffft
  31. #endif // ffft_FFTRealSelect_CODEHEADER_INCLUDED
  32. #undef ffft_FFTRealSelect_CURRENT_CODEHEADER
  33. /*\\\ EOF \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/