зеркало из https://github.com/mozilla/moz-skia.git
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:
Родитель
a3c0588694
Коммит
2043f7d009
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче