kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
Log | Files | Refs | README

commit 2f8fe8d864a3e592e44868865eaa58453b77311f
parent 66eaaa94f7e88d6515f1e22b97bfabbfa693e423
Author: [email protected] <[email protected]>
Date:   Thu, 25 Aug 2016 02:17:01 +0300

Code formatting

Diffstat:
Minclude/kfr/all.hpp | 43+++++++++++++++++++++----------------------
Minclude/kfr/base/pointer.hpp | 4++--
Minclude/kfr/base/types.hpp | 24++++++++++++------------
3 files changed, 35 insertions(+), 36 deletions(-)

diff --git a/include/kfr/all.hpp b/include/kfr/all.hpp @@ -26,42 +26,42 @@ #include "dsp.hpp" #include "io.hpp" -/** \defgroup cometa Cometa -* \brief Metaprogramming +/** @defgroup cometa Cometa +* @brief Metaprogramming */ -/** \defgroup types Types -* \brief Core types +/** @defgroup types Types +* @brief Core types */ -/** \defgroup expressions Expressions -* \brief Expressions +/** @defgroup expressions Expressions +* @brief Expressions */ -/** \defgroup shuffle Shuffle -* \brief Vector shuffle functions +/** @defgroup shuffle Shuffle +* @brief Vector shuffle functions */ -/** \defgroup utility Utility -* \brief Utility classes and functions +/** @defgroup utility Utility +* @brief Utility classes and functions */ -/** \defgroup dft DFT -* \brief Fast Fourier Transform & Direct Fourier Transform +/** @defgroup dft DFT +* @brief Fast Fourier Transform & Direct Fourier Transform */ -/** \defgroup dsp DSP -* \brief Filters and other DSP-related functions +/** @defgroup dsp DSP +* @brief Filters and other DSP-related functions */ -/** \defgroup io IO -* \brief Input & Output +/** @defgroup io IO +* @brief Input & Output */ -/** \defgroup math Math -* \brief Mathematical functions +/** @defgroup math Math +* @brief Mathematical functions */ -/** \defgroup cpuid CPUID -* \brief CPU detection -*/ -\ No newline at end of file +/** @defgroup cpuid CPUID +* @brief CPU detection +*/ diff --git a/include/kfr/base/pointer.hpp b/include/kfr/base/pointer.hpp @@ -155,7 +155,7 @@ CMT_INLINE expression_vtable<T, maxwidth>* make_expression_vtable() } } -/** \brief Converts the given expression into an opaque object. +/** @brief Converts the given expression into an opaque object. * This overload takes reference to the expression. * @warning Use with caution with local variables. */ @@ -167,7 +167,7 @@ CMT_INLINE expression_pointer<T, maxwidth> to_pointer(E& expr) internal::make_expression_vtable<T, maxwidth, E>()); } -/** \brief Converts the given expression into an opaque object. +/** @brief Converts the given expression into an opaque object. * This overload takes ownership of the expression (Move semantics). * @note Use std::move to force use of this overload. */ diff --git a/include/kfr/base/types.hpp b/include/kfr/base/types.hpp @@ -157,7 +157,7 @@ struct ioratio constexpr static size_t output = out; }; -/// \brief An enumeration representing data type +/// @brief An enumeration representing data type enum class datatype : int { typebits_mask = 0xFF, @@ -329,7 +329,7 @@ constexpr inline ptrdiff_t distance(const void* x, const void* y) return static_cast<const unsigned char*>(x) - static_cast<const unsigned char*>(y); } -/// \brief An enumeration representing cpu instruction set +/// @brief An enumeration representing cpu instruction set enum class cpu_t : int { common = 0, @@ -492,7 +492,7 @@ using isubtype = itype<subtype<T>>; template <typename T> using usubtype = utype<subtype<T>>; -/// \brief Base class for all vector classes +/// @brief Base class for all vector classes template <typename T, size_t N> struct vec_t { @@ -595,7 +595,7 @@ constexpr inline static T implicit_cast(U&& value) #pragma clang diagnostic pop -/// \brief Returns name of the cpu instruction set +/// @brief Returns name of the cpu instruction set __attribute__((unused)) static const char* cpu_name(cpu_t set) { static const char* names[] = { "sse2", "sse3", "ssse3", "sse41", "sse42", "avx1", "avx2" }; @@ -711,7 +711,7 @@ constexpr size_t native_int_vector_size = c == cpu_t::neon ? 16 : common_int_vector_size; #endif -/// \brief Base class of all input expressoins +/// @brief Base class of all input expressoins struct input_expression { using value_type = generic; @@ -722,7 +722,7 @@ struct input_expression CMT_INLINE void end_block(size_t) const {} }; -/// \brief Base class of all output expressoins +/// @brief Base class of all output expressoins struct output_expression { using value_type = generic; @@ -733,27 +733,27 @@ struct output_expression CMT_INLINE void output_end_block(size_t) const {} }; -/// \brief Check if the type argument is an input expression +/// @brief Check if the type argument is an input expression template <typename E> using is_input_expression = std::is_base_of<input_expression, decay<E>>; -/// \brief Check if the type arguments are an input expressions +/// @brief Check if the type arguments are an input expressions template <typename... Es> using is_input_expressions = or_t<std::is_base_of<input_expression, decay<Es>>...>; -/// \brief Check if the type argument is an output expression +/// @brief Check if the type argument is an output expression template <typename E> using is_output_expression = std::is_base_of<output_expression, decay<E>>; -/// \brief Check if the type argument is a number or a vector of numbers +/// @brief Check if the type argument is a number or a vector of numbers template <typename T> using is_numeric = is_number<deep_subtype<T>>; -/// \brief Check if the type arguments are a numbers or a vectors of numbers +/// @brief Check if the type arguments are a numbers or a vectors of numbers template <typename... Ts> using is_numeric_args = and_t<is_numeric<Ts>...>; -/// \brief SIMD vector width for the given cpu instruction set +/// @brief SIMD vector width for the given cpu instruction set template <typename T, cpu_t c = cpu_t::native> constexpr size_t vector_width = const_max(size_t(1), typeclass<T> == datatype::f ? native_float_vector_size<c> / sizeof(T)