Sync llcommon with Alchemy a bit.
llmath::llround->ll_round LL_ICC->LL_INTELC Add llpredicate Add LL_CPP11 macro Remove llhash Update llinitparam, llsd and all relatives of it.
This commit is contained in:
@@ -256,7 +256,7 @@ BOOL LLFastTimerView::handleHover(S32 x, S32 y, MASK mask)
|
||||
if (hasMouseCapture())
|
||||
{
|
||||
F32 lerp = llclamp(1.f - (F32) (x - mGraphRect.mLeft) / (F32) mGraphRect.getWidth(), 0.f, 1.f);
|
||||
mScrollIndex = llmath::llround( lerp * (F32)(LLFastTimer::NamedTimer::HISTORY_NUM - MAX_VISIBLE_HISTORY));
|
||||
mScrollIndex = ll_round( lerp * (F32)(LLFastTimer::NamedTimer::HISTORY_NUM - MAX_VISIBLE_HISTORY));
|
||||
mScrollIndex = llclamp( mScrollIndex, 0, LLFastTimer::getLastFrameIndex());
|
||||
return TRUE;
|
||||
}
|
||||
@@ -298,9 +298,9 @@ BOOL LLFastTimerView::handleHover(S32 x, S32 y, MASK mask)
|
||||
}
|
||||
|
||||
mToolTipRect.set(mBarStart[mHoverBarIndex][i],
|
||||
mBarRect.mBottom + llmath::llround(((F32)(MAX_VISIBLE_HISTORY - mHoverBarIndex + 1)) * ((F32)mBarRect.getHeight() / ((F32)MAX_VISIBLE_HISTORY + 2.f))),
|
||||
mBarRect.mBottom + ll_round(((F32)(MAX_VISIBLE_HISTORY - mHoverBarIndex + 1)) * ((F32)mBarRect.getHeight() / ((F32)MAX_VISIBLE_HISTORY + 2.f))),
|
||||
mBarEnd[mHoverBarIndex][i],
|
||||
mBarRect.mBottom + llmath::llround((F32)(MAX_VISIBLE_HISTORY - mHoverBarIndex) * ((F32)mBarRect.getHeight() / ((F32)MAX_VISIBLE_HISTORY + 2.f))));
|
||||
mBarRect.mBottom + ll_round((F32)(MAX_VISIBLE_HISTORY - mHoverBarIndex) * ((F32)mBarRect.getHeight() / ((F32)MAX_VISIBLE_HISTORY + 2.f))));
|
||||
}
|
||||
|
||||
if ((*it)->getCollapsed())
|
||||
@@ -432,7 +432,7 @@ void LLFastTimerView::draw()
|
||||
|
||||
mAverageCyclesPerTimer = LLFastTimer::sTimerCalls == 0
|
||||
? 0
|
||||
: llmath::llround(lerp((F32)mAverageCyclesPerTimer, (F32)(LLFastTimer::sTimerCycles / (U64)LLFastTimer::sTimerCalls), 0.1f));
|
||||
: ll_round(lerp((F32)mAverageCyclesPerTimer, (F32)(LLFastTimer::sTimerCycles / (U64)LLFastTimer::sTimerCalls), 0.1f));
|
||||
LLFastTimer::sTimerCycles = 0;
|
||||
LLFastTimer::sTimerCalls = 0;
|
||||
|
||||
@@ -800,7 +800,7 @@ void LLFastTimerView::draw()
|
||||
? (F32)idp->getCountAverage() / (F32)totalticks
|
||||
: (F32)idp->getHistoricalCount(tidx) / (F32)totalticks;
|
||||
|
||||
dx = llmath::llround(frac * (F32)barw);
|
||||
dx = ll_round(frac * (F32)barw);
|
||||
S32 prev_delta_x = deltax.empty() ? 0 : deltax.back();
|
||||
deltax.push_back(dx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user