Skip to content

Commit cfbc413

Browse files
quickwritereadervpirogov
authored andcommitted
qualify the function saturate with q10n:: specifier to prevent ambiguity
1 parent 8840abd commit cfbc413

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/cpu/s390x/gemmu16.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ __attribute__((noinline)) void addResults(offset_type offsetType, dim_t m,
5050
for (dim_t i = 0; i < m; i++) {
5151
double val = alpha * (double)Ctemp[j * ldCtemp + i] + co[0];
5252
gPtr(i, j) = static_cast<int32_t>(
53-
nearbyint(saturate<int32_t, double>(val)));
53+
nearbyint(q10n::saturate<int32_t, double>(val)));
5454
}
5555
}
5656
} else {
@@ -59,7 +59,7 @@ __attribute__((noinline)) void addResults(offset_type offsetType, dim_t m,
5959
double val = beta * (double)gPtr(i, j)
6060
+ alpha * (double)Ctemp[j * ldCtemp + i] + co[0];
6161
gPtr(i, j) = static_cast<int32_t>(
62-
nearbyint(saturate<int32_t, double>(val)));
62+
nearbyint(q10n::saturate<int32_t, double>(val)));
6363
}
6464
}
6565
}
@@ -69,7 +69,7 @@ __attribute__((noinline)) void addResults(offset_type offsetType, dim_t m,
6969
for (dim_t i = 0; i < m; i++) {
7070
double val = alpha * (double)Ctemp[j * ldCtemp + i] + co[i];
7171
gPtr(i, j) = static_cast<int32_t>(
72-
nearbyint(saturate<int32_t, double>(val)));
72+
nearbyint(q10n::saturate<int32_t, double>(val)));
7373
}
7474
}
7575
} else {
@@ -78,7 +78,7 @@ __attribute__((noinline)) void addResults(offset_type offsetType, dim_t m,
7878
double val = beta * (double)gPtr(i, j)
7979
+ alpha * (double)Ctemp[j * ldCtemp + i] + co[i];
8080
gPtr(i, j) = static_cast<int32_t>(
81-
nearbyint(saturate<int32_t, double>(val)));
81+
nearbyint(q10n::saturate<int32_t, double>(val)));
8282
}
8383
}
8484
}
@@ -89,7 +89,7 @@ __attribute__((noinline)) void addResults(offset_type offsetType, dim_t m,
8989
for (dim_t i = 0; i < m; i++) {
9090
double val = alpha * (double)Ctemp[j * ldCtemp + i] + co[j];
9191
gPtr(i, j) = static_cast<int32_t>(
92-
nearbyint(saturate<int32_t, double>(val)));
92+
nearbyint(q10n::saturate<int32_t, double>(val)));
9393
}
9494
}
9595
} else {
@@ -98,7 +98,7 @@ __attribute__((noinline)) void addResults(offset_type offsetType, dim_t m,
9898
double val = beta * (double)gPtr(i, j)
9999
+ alpha * (double)Ctemp[j * ldCtemp + i] + co[j];
100100
gPtr(i, j) = static_cast<int32_t>(
101-
nearbyint(saturate<int32_t, double>(val)));
101+
nearbyint(q10n::saturate<int32_t, double>(val)));
102102
}
103103
}
104104
}
@@ -107,7 +107,7 @@ __attribute__((noinline)) void addResults(offset_type offsetType, dim_t m,
107107
for (dim_t j = 0; j < n; j++) {
108108
for (dim_t i = 0; i < m; i++) {
109109
gPtr(i, j) = static_cast<int32_t>(
110-
nearbyint(saturate<int32_t, double>(
110+
nearbyint(q10n::saturate<int32_t, double>(
111111
alpha * (double)Ctemp[j * ldCtemp + i])));
112112
}
113113
}
@@ -117,7 +117,7 @@ __attribute__((noinline)) void addResults(offset_type offsetType, dim_t m,
117117
double val = beta * (double)gPtr(i, j)
118118
+ alpha * (double)Ctemp[j * ldCtemp + i];
119119
gPtr(i, j) = static_cast<int32_t>(
120-
nearbyint(saturate<int32_t, double>(val)));
120+
nearbyint(q10n::saturate<int32_t, double>(val)));
121121
}
122122
}
123123
}

0 commit comments

Comments
 (0)