Skip to content
Snippets Groups Projects
Commit bd6a398d authored by scott snyder's avatar scott snyder
Browse files

CxxUtils: Small improvements for CachedValue::isValid().

CachedValue::isValid() should be optimized for the case where the value
is already valid.  In that case, we were doing two comparisons, which
likely resulted in forward branches.  Adjust so that we need only
make one comparison in this case, and use ATH_LIKELY to make it
less likely that we need to branch in this case.
parent 2cbc83c2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment