Searched refs:SaturatedSubtraction (Results 1 – 5 of 5) sorted by relevance
/external/libmojo/ui/gfx/geometry/ |
D | point.h | 69 x_ = base::SaturatedSubtraction(x_, vector.x()); 70 y_ = base::SaturatedSubtraction(y_, vector.y()); 119 return Vector2d(base::SaturatedSubtraction(lhs.x(), rhs.x()), 120 base::SaturatedSubtraction(lhs.y(), rhs.y()));
|
D | vector2d.cc | 24 x_ = base::SaturatedSubtraction(x_, other.x_); in Subtract() 25 y_ = base::SaturatedSubtraction(y_, other.y_); in Subtract()
|
D | rect.cc | 72 int effective_span = base::SaturatedSubtraction(max, min); in SaturatedClampRange() 73 int span_loss = base::SaturatedSubtraction(max, min + effective_span); in SaturatedClampRange() 119 set_width(base::SaturatedSubtraction(width(), in Inset() 121 set_height(base::SaturatedSubtraction(height(), in Inset()
|
/external/libchrome/base/numerics/ |
D | saturated_arithmetic_arm.h | 22 inline int32_t SaturatedSubtraction(int32_t a, int32_t b) { in SaturatedSubtraction() function 33 return SaturatedSubtraction(0, a); in SaturatedNegative()
|
D | saturated_arithmetic.h | 39 ALWAYS_INLINE int32_t SaturatedSubtraction(int32_t a, int32_t b) { in SaturatedSubtraction() function
|