MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / recoverBitmapSet

Function recoverBitmapSet

modules/dasSQLITE/sqlite/shell.c:13869–13875  ·  view source on GitHub ↗

** Set the bit associated with page iPg in bitvec pMap. */

Source from the content-addressed store, hash-verified

13867** Set the bit associated with page iPg in bitvec pMap.
13868*/
13869static void recoverBitmapSet(RecoverBitmap *pMap, i64 iPg){
13870 if( iPg<=pMap->nPg ){
13871 int iElem = (iPg / 32);
13872 int iBit = (iPg % 32);
13873 pMap->aElem[iElem] |= (((u32)1) << iBit);
13874 }
13875}
13876
13877/*
13878** Query bitmap object pMap for the state of the bit associated with page

Callers 1

recoverLostAndFound1StepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected