Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4770ef0e authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

sumsq: fix the syntax as cppcheck can't read it as it was

parent b90e4cd2
No related branches found
No related tags found
1 merge request!374Fix bugs reported by Sonarqube
......@@ -41,8 +41,8 @@
* The value to integrate into the couple (scale, sumsq)
*
*******************************************************************************/
static inline void
#if defined(PRECISION_d) || defined(PRECISION_z)
static inline void
sumsq_update( int nb, double *scale, double *sumsq, const double *value )
{
double absval = fabs(*value);
......@@ -59,6 +59,7 @@ sumsq_update( int nb, double *scale, double *sumsq, const double *value )
}
}
#elif defined(PRECISION_s) || defined(PRECISION_c)
static inline void
sumsq_update( int nb, float *scale, float *sumsq, const float *value )
{
float absval = fabs(*value);
......@@ -99,8 +100,8 @@ sumsq_update( int nb, float *scale, float *sumsq, const float *value )
* The value to integrate into the couple (scale, sumsq)
*
*******************************************************************************/
static inline void
#if defined(PRECISION_d) || defined(PRECISION_z)
static inline void
sumsq_update_2( const double *scalein, const double *sumsqin, double *scaleout, double *sumsqout )
{
if (*scaleout >= 0.) {
......@@ -115,6 +116,7 @@ sumsq_update_2( const double *scalein, const double *sumsqin, double *scaleout,
}
}
#elif defined(PRECISION_s) || defined(PRECISION_c)
static inline void
sumsq_update_2( const float *scalein, const float *sumsqin, float *scaleout, float *sumsqout )
{
if (*scaleout >= 0.) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment