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 a31b8613b2869c6748b461d07048d938cf5f399e
parent 91e2a50935cc5b94e855afa02e2015c0f4635557
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date:   Thu,  6 Oct 2016 04:34:33 +0300

Code formatting

Diffstat:
Minclude/kfr/base/platform.hpp | 10++--------
Minclude/kfr/base/types.hpp | 5+----
Minclude/kfr/cident.h | 6++++--
Minclude/kfr/cometa.hpp | 8++++----
4 files changed, 11 insertions(+), 18 deletions(-)

diff --git a/include/kfr/base/platform.hpp b/include/kfr/base/platform.hpp @@ -106,15 +106,9 @@ constexpr inline const T& bitness_const(const T& x32, const T& x64) } #ifdef CMT_ARCH_X64 -constexpr inline const char* bitness_const(const char*, const char* x64) -{ - return x64; -} +constexpr inline const char* bitness_const(const char*, const char* x64) { return x64; } #else -constexpr inline const char* bitness_const(const char* x32, const char*) -{ - return x32; -} +constexpr inline const char* bitness_const(const char* x32, const char*) { return x32; } #endif constexpr size_t native_cache_alignment = 64; diff --git a/include/kfr/base/types.hpp b/include/kfr/base/types.hpp @@ -291,10 +291,7 @@ CMT_INLINE void builtin_memset(void* dest, int val, size_t size) { __builtin_mem CMT_INLINE f32 builtin_sqrt(f32 x) { return ::sqrtf(x); } CMT_INLINE f64 builtin_sqrt(f64 x) { return ::sqrt(x); } CMT_INLINE f80 builtin_sqrt(f80 x) { return ::sqrtl(x); } -CMT_INLINE void builtin_memcpy(void* dest, const void* src, size_t size) -{ - ::memcpy(dest, src, size); -} +CMT_INLINE void builtin_memcpy(void* dest, const void* src, size_t size) { ::memcpy(dest, src, size); } CMT_INLINE void builtin_memset(void* dest, int val, size_t size) { ::memset(dest, val, size); } #endif diff --git a/include/kfr/cident.h b/include/kfr/cident.h @@ -76,12 +76,14 @@ extern char* gets(char* __s); #define CMT_ARCH_SSE2 1 #define CMT_ARCH_SSE 1 #endif -#if (defined CMT_ARCH_X64 || defined __SSE2__ || (defined _M_IX86_FP && _M_IX86_FP == 2)) && !defined CMT_ARCH_SSE2 +#if (defined CMT_ARCH_X64 || defined __SSE2__ || (defined _M_IX86_FP && _M_IX86_FP == 2)) && \ + !defined CMT_ARCH_SSE2 #define CMT_ARCH_SSE2 1 #define CMT_ARCH_SSE 1 #endif -#if (defined CMT_ARCH_X64 || defined __SSE__ || (defined _M_IX86_FP && _M_IX86_FP == 1)) && !defined CMT_ARCH_SSE +#if (defined CMT_ARCH_X64 || defined __SSE__ || (defined _M_IX86_FP && _M_IX86_FP == 1)) && \ + !defined CMT_ARCH_SSE #define CMT_ARCH_SSE 1 #endif diff --git a/include/kfr/cometa.hpp b/include/kfr/cometa.hpp @@ -91,22 +91,22 @@ struct is_pod_impl<T, void_t<decltype(T::is_pod)>> : std::integral_constant<bool }; template <typename... Ts> -struct or_t_impl: std::false_type +struct or_t_impl : std::false_type { }; template <typename T, typename... Ts> -struct or_t_impl<T, Ts...>: std::integral_constant<bool, T::value || or_t_impl<Ts...>::value> +struct or_t_impl<T, Ts...> : std::integral_constant<bool, T::value || or_t_impl<Ts...>::value> { }; template <typename... Ts> -struct and_t_impl: std::true_type +struct and_t_impl : std::true_type { }; template <typename T, typename... Ts> -struct and_t_impl<T, Ts...>: std::integral_constant<bool, T::value && and_t_impl<Ts...>::value> +struct and_t_impl<T, Ts...> : std::integral_constant<bool, T::value && and_t_impl<Ts...>::value> { }; }