Index: third_party/WebKit/Source/wtf/asm/SaturatedArithmeticARM.h |
diff --git a/third_party/WebKit/Source/wtf/asm/SaturatedArithmeticARM.h b/third_party/WebKit/Source/wtf/asm/SaturatedArithmeticARM.h |
index d0a728015638e76d76491474496a007d7a5982ae..697cda00ea45da448c2fc24903220c70f891caf7 100644 |
--- a/third_party/WebKit/Source/wtf/asm/SaturatedArithmeticARM.h |
+++ b/third_party/WebKit/Source/wtf/asm/SaturatedArithmeticARM.h |
@@ -33,6 +33,11 @@ ALWAYS_INLINE int32_t saturatedSubtraction(int32_t a, int32_t b) |
return result; |
} |
+ALWAYS_INLINE int32_t saturatedNegative(int32_t a) |
+{ |
+ return saturatedSubtraction(0, a); |
+} |
+ |
inline int getMaxSaturatedSetResultForTesting(int FractionalShift) |
{ |
// For ARM Asm version the set function maxes out to the biggest |