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

Unified Diff: third_party/WebKit/Source/wtf/MathExtras.h

Issue 2556383002: Don't define log2 and log2f in blink for Android (Closed)
Patch Set: Merging Created 4 years 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 | « no previous file | 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/MathExtras.h
diff --git a/third_party/WebKit/Source/wtf/MathExtras.h b/third_party/WebKit/Source/wtf/MathExtras.h
index 6ff82028f7163fcc7a06966151bfd4bfd296f06f..f7da0f3722304df4718a24b6584c38b7d6607690 100644
--- a/third_party/WebKit/Source/wtf/MathExtras.h
+++ b/third_party/WebKit/Source/wtf/MathExtras.h
@@ -59,21 +59,6 @@ const float piOverFourFloat = static_cast<float>(M_PI_4);
const double twoPiDouble = piDouble * 2.0;
const float twoPiFloat = piFloat * 2.0f;
-#if OS(ANDROID)
-// ANDROID's math.h does not currently supply log2 or log2f.
-inline double log2(double num) {
- // This constant is roughly M_LN2, which is not provided by default on Windows
- // and Android.
- return log(num) / 0.693147180559945309417232121458176568;
-}
-
-inline float log2f(float num) {
- // This constant is roughly M_LN2, which is not provided by default on Windows
- // and Android.
- return logf(num) / 0.693147180559945309417232121458176568f;
-}
-#endif
-
#if COMPILER(MSVC)
// VS2013 has most of the math functions now, but we still need to work
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698