mirror of https://github.com/PCSX2/pcsx2.git
gsdx tc: add a comment for a potential "ASM" optimization
I'm not sure it worth it yet. But a generic function would be nice for future.
This commit is contained in:
parent
ced2dd9200
commit
1fbee92044
|
@ -1989,6 +1989,9 @@ void GSTextureCache::SourceMap::Add(Source* s, const GIFRegTEX0& TEX0, GSOffset*
|
|||
|
||||
while(_BitScanForward(&j, p))
|
||||
{
|
||||
// FIXME: this statement could be optimized to a single ASM instruction (instead of 4)
|
||||
// Either BTR (AKA bit test and reset). Depends on the previous instruction.
|
||||
// Or BLSR (AKA Reset Lowest Set Bit). No dependency but require BMI1 (basically a recent CPU)
|
||||
p ^= 1 << j;
|
||||
|
||||
m[j].push_front(s);
|
||||
|
|
Loading…
Reference in New Issue