aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric <ewild@sysmocom.de>2022-06-08 12:45:39 +0200
committerEric <ewild@sysmocom.de>2022-07-11 20:33:37 +0200
commita1b77e9b24f728d2a97934e5a317830cd4d207c1 (patch)
tree506438cfa4053c4dc6c3d97a2d0f257172781ecd
parentd9883b11a123b6301e61701a6cf721823f14e9d0 (diff)
xray ignores
tiny functions, do not want. Change-Id: Ie55458f31d16e76e84855ed2c634a9dd9a5e139b
-rw-r--r--Transceiver52M/arch/common/convert_base.c2
-rw-r--r--Transceiver52M/arch/common/convolve_base.c10
-rw-r--r--Transceiver52M/arch/x86/convert.c2
-rw-r--r--Transceiver52M/arch/x86/convert_sse_3.c3
-rw-r--r--Transceiver52M/arch/x86/convert_sse_4_1.c2
-rw-r--r--Transceiver52M/arch/x86/convolve.c2
-rw-r--r--Transceiver52M/arch/x86/convolve_sse_3.c8
-rw-r--r--Transceiver52M/sigProcLib.cpp1
8 files changed, 30 insertions, 0 deletions
diff --git a/Transceiver52M/arch/common/convert_base.c b/Transceiver52M/arch/common/convert_base.c
index 9a01a1e..55bff13 100644
--- a/Transceiver52M/arch/common/convert_base.c
+++ b/Transceiver52M/arch/common/convert_base.c
@@ -17,6 +17,7 @@
#include "convert.h"
+__attribute__((xray_never_instrument))
void base_convert_float_short(short *out, const float *in,
float scale, int len)
{
@@ -24,6 +25,7 @@ void base_convert_float_short(short *out, const float *in,
out[i] = in[i] * scale;
}
+__attribute__((xray_never_instrument))
void base_convert_short_float(float *out, const short *in, int len)
{
for (int i = 0; i < len; i++)
diff --git a/Transceiver52M/arch/common/convolve_base.c b/Transceiver52M/arch/common/convolve_base.c
index 3765c5c..ec08d55 100644
--- a/Transceiver52M/arch/common/convolve_base.c
+++ b/Transceiver52M/arch/common/convolve_base.c
@@ -24,6 +24,7 @@
#endif
/* Base multiply and accumulate complex-real */
+__attribute__((xray_never_instrument))
static void mac_real(const float *x, const float *h, float *y)
{
y[0] += x[0] * h[0];
@@ -31,6 +32,7 @@ static void mac_real(const float *x, const float *h, float *y)
}
/* Base multiply and accumulate complex-complex */
+__attribute__((xray_never_instrument))
static void mac_cmplx(const float *x, const float *h, float *y)
{
y[0] += x[0] * h[0] - x[1] * h[1];
@@ -38,6 +40,7 @@ static void mac_cmplx(const float *x, const float *h, float *y)
}
/* Base vector complex-complex multiply and accumulate */
+__attribute__((xray_never_instrument))
static void mac_real_vec_n(const float *x, const float *h, float *y,
int len)
{
@@ -46,6 +49,7 @@ static void mac_real_vec_n(const float *x, const float *h, float *y,
}
/* Base vector complex-complex multiply and accumulate */
+__attribute__((xray_never_instrument))
static void mac_cmplx_vec_n(const float *x, const float *h, float *y,
int len)
{
@@ -54,6 +58,7 @@ static void mac_cmplx_vec_n(const float *x, const float *h, float *y,
}
/* Base complex-real convolution */
+__attribute__((xray_never_instrument))
int _base_convolve_real(const float *x, int x_len,
const float *h, int h_len,
float *y, int y_len,
@@ -69,6 +74,7 @@ int _base_convolve_real(const float *x, int x_len,
}
/* Base complex-complex convolution */
+__attribute__((xray_never_instrument))
int _base_convolve_complex(const float *x, int x_len,
const float *h, int h_len,
float *y, int y_len,
@@ -85,6 +91,7 @@ int _base_convolve_complex(const float *x, int x_len,
}
/* Buffer validity checks */
+__attribute__((xray_never_instrument))
int bounds_check(int x_len, int h_len, int y_len,
int start, int len)
{
@@ -105,6 +112,7 @@ int bounds_check(int x_len, int h_len, int y_len,
}
/* API: Non-aligned (no SSE) complex-real */
+__attribute__((xray_never_instrument))
int base_convolve_real(const float *x, int x_len,
const float *h, int h_len,
float *y, int y_len,
@@ -122,6 +130,7 @@ int base_convolve_real(const float *x, int x_len,
}
/* API: Non-aligned (no SSE) complex-complex */
+__attribute__((xray_never_instrument))
int base_convolve_complex(const float *x, int x_len,
const float *h, int h_len,
float *y, int y_len,
@@ -139,6 +148,7 @@ int base_convolve_complex(const float *x, int x_len,
}
/* Aligned filter tap allocation */
+__attribute__((xray_never_instrument))
void *convolve_h_alloc(size_t len)
{
#ifdef HAVE_SSE3
diff --git a/Transceiver52M/arch/x86/convert.c b/Transceiver52M/arch/x86/convert.c
index 596233c..dd4e15c 100644
--- a/Transceiver52M/arch/x86/convert.c
+++ b/Transceiver52M/arch/x86/convert.c
@@ -60,6 +60,7 @@ void convert_init(void)
#endif
}
+__attribute__((xray_never_instrument))
void convert_float_short(short *out, const float *in, float scale, int len)
{
if (!(len % 16))
@@ -70,6 +71,7 @@ void convert_float_short(short *out, const float *in, float scale, int len)
c.convert_scale_ps_si16(out, in, scale, len);
}
+__attribute__((xray_never_instrument))
void convert_short_float(float *out, const short *in, int len)
{
if (!(len % 16))
diff --git a/Transceiver52M/arch/x86/convert_sse_3.c b/Transceiver52M/arch/x86/convert_sse_3.c
index f00ecf5..1814a8c 100644
--- a/Transceiver52M/arch/x86/convert_sse_3.c
+++ b/Transceiver52M/arch/x86/convert_sse_3.c
@@ -26,6 +26,7 @@
#include <emmintrin.h>
/* 8*N single precision floats scaled and converted to 16-bit signed integer */
+__attribute__((xray_never_instrument))
void _sse_convert_scale_ps_si16_8n(short *restrict out,
const float *restrict in,
float scale, int len)
@@ -54,6 +55,7 @@ void _sse_convert_scale_ps_si16_8n(short *restrict out,
}
/* 8*N single precision floats scaled and converted with remainder */
+__attribute__((xray_never_instrument))
void _sse_convert_scale_ps_si16(short *restrict out,
const float *restrict in, float scale, int len)
{
@@ -66,6 +68,7 @@ void _sse_convert_scale_ps_si16(short *restrict out,
}
/* 16*N single precision floats scaled and converted to 16-bit signed integer */
+__attribute__((xray_never_instrument))
void _sse_convert_scale_ps_si16_16n(short *restrict out,
const float *restrict in,
float scale, int len)
diff --git a/Transceiver52M/arch/x86/convert_sse_4_1.c b/Transceiver52M/arch/x86/convert_sse_4_1.c
index 736a376..881a795 100644
--- a/Transceiver52M/arch/x86/convert_sse_4_1.c
+++ b/Transceiver52M/arch/x86/convert_sse_4_1.c
@@ -25,6 +25,7 @@
#include <smmintrin.h>
/* 16*N 16-bit signed integer converted to single precision floats */
+__attribute__((xray_never_instrument))
void _sse_convert_si16_ps_16n(float *restrict out,
const short *restrict in, int len)
{
@@ -59,6 +60,7 @@ void _sse_convert_si16_ps_16n(float *restrict out,
}
/* 16*N 16-bit signed integer conversion with remainder */
+__attribute__((xray_never_instrument))
void _sse_convert_si16_ps(float *restrict out,
const short *restrict in, int len)
{
diff --git a/Transceiver52M/arch/x86/convolve.c b/Transceiver52M/arch/x86/convolve.c
index 45a3719..a1b1dcd 100644
--- a/Transceiver52M/arch/x86/convolve.c
+++ b/Transceiver52M/arch/x86/convolve.c
@@ -91,6 +91,7 @@ void convolve_init(void)
}
/* API: Aligned complex-real */
+__attribute__((xray_never_instrument))
int convolve_real(const float *x, int x_len,
const float *h, int h_len,
float *y, int y_len, int start, int len)
@@ -130,6 +131,7 @@ int convolve_real(const float *x, int x_len,
}
/* API: Aligned complex-complex */
+__attribute__((xray_never_instrument))
int convolve_complex(const float *x, int x_len,
const float *h, int h_len,
float *y, int y_len,
diff --git a/Transceiver52M/arch/x86/convolve_sse_3.c b/Transceiver52M/arch/x86/convolve_sse_3.c
index ca4dc71..5495974 100644
--- a/Transceiver52M/arch/x86/convolve_sse_3.c
+++ b/Transceiver52M/arch/x86/convolve_sse_3.c
@@ -27,6 +27,7 @@
#include <pmmintrin.h>
/* 4-tap SSE complex-real convolution */
+__attribute__((xray_never_instrument))
void sse_conv_real4(const float *x, int x_len,
const float *h, int h_len,
float *y, int y_len,
@@ -68,6 +69,7 @@ void sse_conv_real4(const float *x, int x_len,
}
/* 8-tap SSE complex-real convolution */
+__attribute__((xray_never_instrument))
void sse_conv_real8(const float *x, int x_len,
const float *h, int h_len,
float *y, int y_len,
@@ -119,6 +121,7 @@ void sse_conv_real8(const float *x, int x_len,
}
/* 12-tap SSE complex-real convolution */
+__attribute__((xray_never_instrument))
void sse_conv_real12(const float *x, int x_len,
const float *h, int h_len,
float *y, int y_len,
@@ -185,6 +188,7 @@ void sse_conv_real12(const float *x, int x_len,
}
/* 16-tap SSE complex-real convolution */
+__attribute__((xray_never_instrument))
void sse_conv_real16(const float *x, int x_len,
const float *h, int h_len,
float *y, int y_len,
@@ -264,6 +268,7 @@ void sse_conv_real16(const float *x, int x_len,
}
/* 20-tap SSE complex-real convolution */
+__attribute__((xray_never_instrument))
void sse_conv_real20(const float *x, int x_len,
const float *h, int h_len,
float *y, int y_len,
@@ -354,6 +359,7 @@ void sse_conv_real20(const float *x, int x_len,
}
/* 4*N-tap SSE complex-real convolution */
+__attribute__((xray_never_instrument))
void sse_conv_real4n(const float *x, int x_len,
const float *h, int h_len,
float *y, int y_len,
@@ -401,6 +407,7 @@ void sse_conv_real4n(const float *x, int x_len,
}
/* 4*N-tap SSE complex-complex convolution */
+__attribute__((xray_never_instrument))
void sse_conv_cmplx_4n(const float *x, int x_len,
const float *h, int h_len,
float *y, int y_len,
@@ -459,6 +466,7 @@ void sse_conv_cmplx_4n(const float *x, int x_len,
}
/* 8*N-tap SSE complex-complex convolution */
+__attribute__((xray_never_instrument))
void sse_conv_cmplx_8n(const float *x, int x_len,
const float *h, int h_len,
float *y, int y_len,
diff --git a/Transceiver52M/sigProcLib.cpp b/Transceiver52M/sigProcLib.cpp
index 792c781..c2cf2c9 100644
--- a/Transceiver52M/sigProcLib.cpp
+++ b/Transceiver52M/sigProcLib.cpp
@@ -1095,6 +1095,7 @@ signalVector *delayVector(const signalVector *in, signalVector *out, float delay
return out;
}
+__attribute__((xray_never_instrument))
static complex interpolatePoint(const signalVector &inSig, float ix)
{
int start = (int) (floor(ix) - 10);