@@ -1249,7 +1249,7 @@ class LLVM_NODISCARD APInt {
1249
1249
// / \returns true if *this <= RHS when considered signed.
1250
1250
bool sle (uint64_t RHS) const { return !sgt (RHS); }
1251
1251
1252
- // / Unsigned greather than comparison
1252
+ // / Unsigned greater than comparison
1253
1253
// /
1254
1254
// / Regards both *this and RHS as unsigned quantities and compares them for
1255
1255
// / the validity of the greater-than relationship.
@@ -1268,7 +1268,7 @@ class LLVM_NODISCARD APInt {
1268
1268
return (!isSingleWord () && getActiveBits () > 64 ) || getZExtValue () > RHS;
1269
1269
}
1270
1270
1271
- // / Signed greather than comparison
1271
+ // / Signed greater than comparison
1272
1272
// /
1273
1273
// / Regards both *this and RHS as signed quantities and compares them for the
1274
1274
// / validity of the greater-than relationship.
@@ -2162,7 +2162,7 @@ inline float RoundAPIntToFloat(const APInt &APIVal) {
2162
2162
2163
2163
// / Converts the given APInt to a float value.
2164
2164
// /
2165
- // / Treast the APInt as a signed value for conversion purposes.
2165
+ // / Treats the APInt as a signed value for conversion purposes.
2166
2166
inline float RoundSignedAPIntToFloat (const APInt &APIVal) {
2167
2167
return float (APIVal.signedRoundToDouble ());
2168
2168
}
@@ -2198,7 +2198,7 @@ APInt RoundingSDiv(const APInt &A, const APInt &B, APInt::Rounding RM);
2198
2198
// / count as an overflow, but here we want to allow values to decrease
2199
2199
// / and increase as long as they are within the same interval.
2200
2200
// / Specifically, adding of two negative numbers should not cause an
2201
- // / overflow (as long as the magnitude does not exceed the bith width).
2201
+ // / overflow (as long as the magnitude does not exceed the bit width).
2202
2202
// / On the other hand, given a positive number, adding a negative
2203
2203
// / number to it can give a negative result, which would cause the
2204
2204
// / value to go from [-2^BW, 0) to [0, 2^BW). In that sense, zero is
0 commit comments