Commit-Queue | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
// LayoutUnit::max() and ::min()
LayoutUnit -> FixedPoint
// value_ = value << kFractionalBits;
Remove this line.
// The specified `value` is rounded to a multiple of 1/64, and
// is clamped by Min() and Max().
// A NaN `value` produces LayoutUnit(0).
Ditto.
// The specified `value` is truncated to a multiple of 1/64, and is clamped
// by Min() and Max().
// A NaN `value` produces LayoutUnit(0).
Ditto.
// The specified `value` is rounded up to a multiple of 1/64, and
// is clamped by Min() and Max().
// A NaN `value` produces LayoutUnit(0).
Ditto.
// A NaN `value` produces LayoutUnit(0).
Should be `FixedPoint(0)`.
// The specified `value` is truncated to a multiple of 1/64 near 0, and
should be `Epsilon()`
// Creates a LayoutUnit with the specified integer value.
// If the specified value is smaller than LayoutUnit::Min(), the new
// LayoutUnit is equivalent to LayoutUnit::Min().
// If the specified value is greater than the maximum integer value which
// LayoutUnit can represent, the new LayoutUnit is equivalent to
// LayoutUnit(LayoutUnit::kIntMax) in 32-bit Arm, or is equivalent to
// LayoutUnit::Max() otherwise.
This comment needs to be updated for `FixedPoint`.
#if 1
Remove this `#if 1`, and the `else` part.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
// LayoutUnit::max() and ::min()
Koji IshiiLayoutUnit -> FixedPoint
Done
// value_ = value << kFractionalBits;
Koji IshiiRemove this line.
Done
// The specified `value` is rounded to a multiple of 1/64, and
// is clamped by Min() and Max().
// A NaN `value` produces LayoutUnit(0).
Koji IshiiDitto.
Done
// The specified `value` is truncated to a multiple of 1/64, and is clamped
// by Min() and Max().
// A NaN `value` produces LayoutUnit(0).
Koji IshiiDitto.
Done
// The specified `value` is rounded up to a multiple of 1/64, and
// is clamped by Min() and Max().
// A NaN `value` produces LayoutUnit(0).
Koji IshiiDitto.
Done
// A NaN `value` produces LayoutUnit(0).
Koji IshiiShould be `FixedPoint(0)`.
Done
// The specified `value` is truncated to a multiple of 1/64 near 0, and
Koji Ishiishould be `Epsilon()`
Done
// Creates a LayoutUnit with the specified integer value.
// If the specified value is smaller than LayoutUnit::Min(), the new
// LayoutUnit is equivalent to LayoutUnit::Min().
// If the specified value is greater than the maximum integer value which
// LayoutUnit can represent, the new LayoutUnit is equivalent to
// LayoutUnit(LayoutUnit::kIntMax) in 32-bit Arm, or is equivalent to
// LayoutUnit::Max() otherwise.
This comment needs to be updated for `FixedPoint`.
Done
Remove this `#if 1`, and the `else` part.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
static_cast<int>(result));
nit: Should be `int32_t` or `RawValue`.
(static_cast<uint32_t>(a.RawValue() ^ b.RawValue()) >> 31) + kRawValueMax;
should be `FixedPoint<fractional_bits, int32_t>::kRawValueMax` or `FixedPoint<fractional_bits, RawValue>::kRawValueMax`.
FixedPoint<fractional_bits, int>::kFixedPointDenominator;
nit: `RawValue` or `int32_t` rather than `int` for consistency with the `requires` above.
static bool IsInBounds(int value) {
return ::abs(value) <= kRawValueMax / kFixedPointDenominator;
}
static bool IsInBounds(unsigned value) {
return value <=
Do we need to update them for `StorageType` and `UnsignedStorageType`?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |