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
This commit is contained in:
reed@android.com 2009-04-02 21:11:14 +00:00
Родитель a3c0588694
Коммит 2043f7d009
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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);