diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2019-08-07 21:45:12 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2019-08-09 23:04:28 +0200 |
commit | f7bbf2c1d8d780294f3e016aff239ca35eb6516e (patch) | |
tree | e09ab6112e02b2215b2d59ac24d3d6ea2edac745 /gnuradio-runtime/lib/math/sincos.cc | |
parent | 78431dc6941e3acc67c858277dfe4a0ed583643c (diff) |
Tree: clang-format without the include sorting
Diffstat (limited to 'gnuradio-runtime/lib/math/sincos.cc')
-rw-r--r-- | gnuradio-runtime/lib/math/sincos.cc | 43 |
1 files changed, 16 insertions, 27 deletions
diff --git a/gnuradio-runtime/lib/math/sincos.cc b/gnuradio-runtime/lib/math/sincos.cc index 49a90d2128..de97fc355e 100644 --- a/gnuradio-runtime/lib/math/sincos.cc +++ b/gnuradio-runtime/lib/math/sincos.cc @@ -25,7 +25,7 @@ #endif #ifndef _GNU_SOURCE -#define _GNU_SOURCE // ask for GNU extensions if available +#define _GNU_SOURCE // ask for GNU extensions if available #endif #include <gnuradio/sincos.h> @@ -33,52 +33,41 @@ namespace gr { -#if defined (HAVE_SINCOS) +#if defined(HAVE_SINCOS) - void - sincos(double x, double *sinx, double *cosx) - { - ::sincos(x, sinx, cosx); - } +void sincos(double x, double* sinx, double* cosx) { ::sincos(x, sinx, cosx); } #else - void - sincos(double x, double *sinx, double *cosx) - { +void sincos(double x, double* sinx, double* cosx) +{ *sinx = ::sin(x); *cosx = ::cos(x); - } +} #endif - // ---------------------------------------------------------------- +// ---------------------------------------------------------------- -#if defined (HAVE_SINCOSF) +#if defined(HAVE_SINCOSF) - void - sincosf(float x, float *sinx, float *cosx) - { - ::sincosf(x, sinx, cosx); - } +void sincosf(float x, float* sinx, float* cosx) { ::sincosf(x, sinx, cosx); } -#elif defined (HAVE_SINF) && defined (HAVE_COSF) +#elif defined(HAVE_SINF) && defined(HAVE_COSF) - void - sincosf(float x, float *sinx, float *cosx) - { +void sincosf(float x, float* sinx, float* cosx) +{ *sinx = ::sinf(x); *cosx = ::cosf(x); - } +} #else - void - sincosf(float x, float *sinx, float *cosx) - { +void sincosf(float x, float* sinx, float* cosx) +{ *sinx = ::sin(x); *cosx = ::cos(x); - } +} #endif |