Merge pull request #1410 from brada4/develop

Address warnings #1357
This commit is contained in:
Martin Kroeker
2018-01-06 20:02:46 +01:00
committed by GitHub
23 changed files with 75 additions and 73 deletions
+3 -3
View File
@@ -251,11 +251,11 @@ int CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n,
if ((k == 0) || (alpha == NULL)) return 0;
#if !defined(XDOUBLE) || !defined(QUAD_PRECISION)
if ((alpha[0] == ZERO)
if ( alpha[0] == ZERO
#ifdef COMPLEX
&& (alpha[1] == ZERO)
&& alpha[1] == ZERO
#endif
) return 0;
) return 0;
#else
if (((alpha[0].x[0] | alpha[0].x[1]
#ifdef COMPLEX
+2 -2
View File
@@ -154,9 +154,9 @@ int CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa, FLO
if ((k == 0) || (alpha == NULL)) return 0;
if ((alpha[0] == ZERO)
if (alpha[0] == ZERO
#ifdef COMPLEX
&& (alpha[1] == ZERO)
&& alpha[1] == ZERO
#endif
) return 0;
+2 -2
View File
@@ -158,9 +158,9 @@ int CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa, FLO
if ((k == 0) || (alpha == NULL)) return 0;
if ((alpha[0] == ZERO)
if (alpha[0] == ZERO
#if defined(COMPLEX) && !defined(HERK)
&& (alpha[1] == ZERO)
&& alpha[1] == ZERO
#endif
) return 0;
+2 -2
View File
@@ -200,9 +200,9 @@ static int inner_thread(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n,
if ((k == 0) || (alpha == NULL)) return 0;
if ((alpha[0] == ZERO)
if (alpha[0] == ZERO
#if defined(COMPLEX) && !defined(HERK)
&& (alpha[1] == ZERO)
&& alpha[1] == ZERO
#endif
) return 0;
+2 -2
View File
@@ -295,9 +295,9 @@ static int inner_thread(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n,
/* Return early if no more computation is needed */
if ((k == 0) || (alpha == NULL)) return 0;
if ((alpha[0] == ZERO)
if (alpha[0] == ZERO
#ifdef COMPLEX
&& (alpha[1] == ZERO)
&& alpha[1] == ZERO
#endif
) return 0;
+2 -2
View File
@@ -237,7 +237,7 @@ static inline void get_cpumap(int node, unsigned long * node_info) {
if(k!=0){
name[k]='\0';
affinity[count++] = strtoul(name, &dummy, 16);
k=0;
// k=0;
}
// 0-63bit -> node_info[0], 64-128bit -> node_info[1] ....
// revert the sequence
@@ -293,7 +293,7 @@ static inline void get_share(int cpu, int level, unsigned long * share) {
if(k!=0){
name[k]='\0';
affinity[count++] = strtoul(name, &dummy, 16);
k=0;
// k=0;
}
// 0-63bit -> node_info[0], 64-128bit -> node_info[1] ....
// revert the sequence