From 2043f7d009a795e164c58f4674e6b879aeb679c9 Mon Sep 17 00:00:00 2001 From: "reed@android.com" Date: Thu, 2 Apr 2009 21:11:14 +0000 Subject: [PATCH] replace floorf() with sk_float_floor(), so it builds on platforms w/o floorf git-svn-id: http://skia.googlecode.com/svn/trunk@145 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkGraphics.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/SkGraphics.cpp b/src/core/SkGraphics.cpp index 7e72c3f5e..649de1d5c 100644 --- a/src/core/SkGraphics.cpp +++ b/src/core/SkGraphics.cpp @@ -187,10 +187,10 @@ int time_math() { f = dummy(); now = SkTime::GetMSecs(); for (i = repeat - 1; i >= 0; --i) { - sum += (int)floorf(f + 0.5f); f = fast_inc(f); - sum += (int)floorf(f + 0.5f); f = fast_inc(f); - sum += (int)floorf(f + 0.5f); f = fast_inc(f); - sum += (int)floorf(f + 0.5f); f = fast_inc(f); + sum += (int)sk_float_floor(f + 0.5f); f = fast_inc(f); + sum += (int)sk_float_floor(f + 0.5f); f = fast_inc(f); + sum += (int)sk_float_floor(f + 0.5f); f = fast_inc(f); + sum += (int)sk_float_floor(f + 0.5f); f = fast_inc(f); } SkDebugf("---- native round %d\n", SkTime::GetMSecs() - now);