File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,8 @@ int64_t VectorMachineSupport::computeArchVectorLength(Type elementType) {
117
117
int64_t totNum = vectorizedOpNum + scalarOpNum;
118
118
if (!hasRegisterPressure) {
119
119
// Estimate default register pressure as one per 2 vector operation.
120
- maxVectorRegisterPressure = std::max (vectorizedOpNum / 2 , (int64_t )1 );
120
+ maxVectorRegisterPressure =
121
+ std::max (vectorizedOpNum / 2 , static_cast <int64_t >(1 ));
121
122
}
122
123
return totNum != 0 ? (1.0 * totProcessedValues) / (1.0 * totNum) : 1.0 ;
123
124
}
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ typedef int(
89
89
#pragma GCC diagnostic ignored "-Wcast-qual"
90
90
#endif
91
91
92
- #define Load (typeName, to, from ) typeName (to) = ( from)
92
+ #define Load (typeName, to, from ) typeName to = from
93
93
94
94
// Convert f16 elements to f32 for comparison because we don't have logic to
95
95
// compare f16 elements directly on all platforms.
You can’t perform that action at this time.
0 commit comments