|
|
|
@ -581,20 +581,18 @@ LSET allCuMask( int aCuLayerCount ) |
|
|
|
|
|
|
|
LSET LSET::AllCuMask( int aCuLayerCount ) |
|
|
|
{ |
|
|
|
static LSET savedMax = allCuMask( MAX_CU_LAYERS ); |
|
|
|
static LSET cache; |
|
|
|
static int cacheCuLayerCount = -1; |
|
|
|
|
|
|
|
if( aCuLayerCount == MAX_CU_LAYERS ) |
|
|
|
return savedMax; |
|
|
|
return AllCuMask(); |
|
|
|
|
|
|
|
if( aCuLayerCount != cacheCuLayerCount ) |
|
|
|
{ |
|
|
|
cache = allCuMask( aCuLayerCount ); |
|
|
|
cacheCuLayerCount = aCuLayerCount; |
|
|
|
} |
|
|
|
return allCuMask( aCuLayerCount ); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
LSET LSET::AllCuMask() |
|
|
|
{ |
|
|
|
static LSET s_savedMax = allCuMask( MAX_CU_LAYERS ); |
|
|
|
|
|
|
|
return cache; |
|
|
|
return s_savedMax; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|