Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: third_party/WebKit/Source/wtf/asm/SaturatedArithmeticARM.h

Issue 2171813002: Better performance for -LayoutUnit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/SaturatedArithmetic.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/WebKit/Source/wtf/SaturatedArithmetic.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698