From 7e709a30ca4006406c45236cb9b80360d4e3b4c7 Mon Sep 17 00:00:00 2001 From: vaclav Date: Wed, 6 Mar 2024 18:36:36 +0100 Subject: [PATCH] wrap function sum_l() under DEBUGGING --- lib_com/prot.h | 2 ++ lib_com/tools.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib_com/prot.h b/lib_com/prot.h index 87f01a9161..de16bd8342 100644 --- a/lib_com/prot.h +++ b/lib_com/prot.h @@ -161,12 +161,14 @@ int16_t sum_s( const int16_t lvec /* i : length of input vector */ ); +#ifdef DEBUGGING /*! r: sum of all vector elements */ int32_t sum_l( const int32_t *vec, /* i : input vector */ const int16_t lvec /* i : length of input vector */ ); +#endif /*! r: sum of all vector elements */ float sum_f( const float *vec, /* i : input vector */ diff --git a/lib_com/tools.c b/lib_com/tools.c index 10633883fd..9dfa8b9f81 100644 --- a/lib_com/tools.c +++ b/lib_com/tools.c @@ -138,6 +138,7 @@ int16_t sum_s( return tmp; } +#ifdef DEBUGGING /*! r: sum of all vector elements */ int32_t sum_l( const int32_t *vec, /* i : input vector */ @@ -156,6 +157,7 @@ int32_t sum_l( return tmpL; } +#endif /*! r: sum of all vector elements */ float sum_f( const float *vec, /* i : input vector */ -- GitLab