mem5              214 gpu/command_buffer/client/mapped_memory_unittest.cc   void* mem5 = manager_->Alloc(kSize / 2, &id5, &offset5);
mem5              216 gpu/command_buffer/client/mapped_memory_unittest.cc   ASSERT_TRUE(mem5 != NULL);
mem5              223 gpu/command_buffer/client/mapped_memory_unittest.cc   manager_->Free(mem5);
mem5               58 ppapi/generators/test_cgen/interface.h   int32_t (*mem5)(void** ptr);
mem5             15927 third_party/sqlite/amalgamation/sqlite3.c } mem5;
mem5             15932 third_party/sqlite/amalgamation/sqlite3.c #define mem5 GLOBAL(struct Mem5Global, mem5)
mem5             15938 third_party/sqlite/amalgamation/sqlite3.c #define MEM5LINK(idx) ((Mem5Link *)(&mem5.zPool[(idx)*mem5.szAtom]))
mem5             15946 third_party/sqlite/amalgamation/sqlite3.c   assert( i>=0 && i<mem5.nBlock );
mem5             15948 third_party/sqlite/amalgamation/sqlite3.c   assert( (mem5.aCtrl[i] & CTRL_LOGSIZE)==iLogsize );
mem5             15953 third_party/sqlite/amalgamation/sqlite3.c     mem5.aiFreelist[iLogsize] = next;
mem5             15968 third_party/sqlite/amalgamation/sqlite3.c   assert( sqlite3_mutex_held(mem5.mutex) );
mem5             15969 third_party/sqlite/amalgamation/sqlite3.c   assert( i>=0 && i<mem5.nBlock );
mem5             15971 third_party/sqlite/amalgamation/sqlite3.c   assert( (mem5.aCtrl[i] & CTRL_LOGSIZE)==iLogsize );
mem5             15973 third_party/sqlite/amalgamation/sqlite3.c   x = MEM5LINK(i)->next = mem5.aiFreelist[iLogsize];
mem5             15976 third_party/sqlite/amalgamation/sqlite3.c     assert( x<mem5.nBlock );
mem5             15979 third_party/sqlite/amalgamation/sqlite3.c   mem5.aiFreelist[iLogsize] = i;
mem5             15988 third_party/sqlite/amalgamation/sqlite3.c   sqlite3_mutex_enter(mem5.mutex);
mem5             15991 third_party/sqlite/amalgamation/sqlite3.c   sqlite3_mutex_leave(mem5.mutex);
mem5             16002 third_party/sqlite/amalgamation/sqlite3.c     int i = ((u8 *)p-mem5.zPool)/mem5.szAtom;
mem5             16003 third_party/sqlite/amalgamation/sqlite3.c     assert( i>=0 && i<mem5.nBlock );
mem5             16004 third_party/sqlite/amalgamation/sqlite3.c     iSize = mem5.szAtom * (1 << (mem5.aCtrl[i]&CTRL_LOGSIZE));
mem5             16018 third_party/sqlite/amalgamation/sqlite3.c   i = iFirst = mem5.aiFreelist[iLogsize];
mem5             16049 third_party/sqlite/amalgamation/sqlite3.c   if( (u32)nByte>mem5.maxRequest ){
mem5             16050 third_party/sqlite/amalgamation/sqlite3.c     mem5.maxRequest = nByte;
mem5             16061 third_party/sqlite/amalgamation/sqlite3.c   for(iFullSz=mem5.szAtom, iLogsize=0; iFullSz<nByte; iFullSz *= 2, iLogsize++){}
mem5             16067 third_party/sqlite/amalgamation/sqlite3.c   for(iBin=iLogsize; mem5.aiFreelist[iBin]<0 && iBin<=LOGMAX; iBin++){}
mem5             16079 third_party/sqlite/amalgamation/sqlite3.c     mem5.aCtrl[i+newSize] = CTRL_FREE | iBin;
mem5             16082 third_party/sqlite/amalgamation/sqlite3.c   mem5.aCtrl[i] = iLogsize;
mem5             16085 third_party/sqlite/amalgamation/sqlite3.c   mem5.nAlloc++;
mem5             16086 third_party/sqlite/amalgamation/sqlite3.c   mem5.totalAlloc += iFullSz;
mem5             16087 third_party/sqlite/amalgamation/sqlite3.c   mem5.totalExcess += iFullSz - nByte;
mem5             16088 third_party/sqlite/amalgamation/sqlite3.c   mem5.currentCount++;
mem5             16089 third_party/sqlite/amalgamation/sqlite3.c   mem5.currentOut += iFullSz;
mem5             16090 third_party/sqlite/amalgamation/sqlite3.c   if( mem5.maxCount<mem5.currentCount ) mem5.maxCount = mem5.currentCount;
mem5             16091 third_party/sqlite/amalgamation/sqlite3.c   if( mem5.maxOut<mem5.currentOut ) mem5.maxOut = mem5.currentOut;
mem5             16094 third_party/sqlite/amalgamation/sqlite3.c   return (void*)&mem5.zPool[i*mem5.szAtom];
mem5             16107 third_party/sqlite/amalgamation/sqlite3.c   iBlock = ((u8 *)pOld-mem5.zPool)/mem5.szAtom;
mem5             16110 third_party/sqlite/amalgamation/sqlite3.c   assert( iBlock>=0 && iBlock<mem5.nBlock );
mem5             16111 third_party/sqlite/amalgamation/sqlite3.c   assert( ((u8 *)pOld-mem5.zPool)%mem5.szAtom==0 );
mem5             16112 third_party/sqlite/amalgamation/sqlite3.c   assert( (mem5.aCtrl[iBlock] & CTRL_FREE)==0 );
mem5             16114 third_party/sqlite/amalgamation/sqlite3.c   iLogsize = mem5.aCtrl[iBlock] & CTRL_LOGSIZE;
mem5             16116 third_party/sqlite/amalgamation/sqlite3.c   assert( iBlock+size-1<(u32)mem5.nBlock );
mem5             16118 third_party/sqlite/amalgamation/sqlite3.c   mem5.aCtrl[iBlock] |= CTRL_FREE;
mem5             16119 third_party/sqlite/amalgamation/sqlite3.c   mem5.aCtrl[iBlock+size-1] |= CTRL_FREE;
mem5             16120 third_party/sqlite/amalgamation/sqlite3.c   assert( mem5.currentCount>0 );
mem5             16121 third_party/sqlite/amalgamation/sqlite3.c   assert( mem5.currentOut>=(size*mem5.szAtom) );
mem5             16122 third_party/sqlite/amalgamation/sqlite3.c   mem5.currentCount--;
mem5             16123 third_party/sqlite/amalgamation/sqlite3.c   mem5.currentOut -= size*mem5.szAtom;
mem5             16124 third_party/sqlite/amalgamation/sqlite3.c   assert( mem5.currentOut>0 || mem5.currentCount==0 );
mem5             16125 third_party/sqlite/amalgamation/sqlite3.c   assert( mem5.currentCount>0 || mem5.currentOut==0 );
mem5             16127 third_party/sqlite/amalgamation/sqlite3.c   mem5.aCtrl[iBlock] = CTRL_FREE | iLogsize;
mem5             16136 third_party/sqlite/amalgamation/sqlite3.c     if( (iBuddy+(1<<iLogsize))>mem5.nBlock ) break;
mem5             16137 third_party/sqlite/amalgamation/sqlite3.c     if( mem5.aCtrl[iBuddy]!=(CTRL_FREE | iLogsize) ) break;
mem5             16141 third_party/sqlite/amalgamation/sqlite3.c       mem5.aCtrl[iBuddy] = CTRL_FREE | iLogsize;
mem5             16142 third_party/sqlite/amalgamation/sqlite3.c       mem5.aCtrl[iBlock] = 0;
mem5             16145 third_party/sqlite/amalgamation/sqlite3.c       mem5.aCtrl[iBlock] = CTRL_FREE | iLogsize;
mem5             16146 third_party/sqlite/amalgamation/sqlite3.c       mem5.aCtrl[iBuddy] = 0;
mem5             16226 third_party/sqlite/amalgamation/sqlite3.c   for(iFullSz=mem5.szAtom; iFullSz<n; iFullSz *= 2);
mem5             16262 third_party/sqlite/amalgamation/sqlite3.c   mem5.mutex = 0;
mem5             16275 third_party/sqlite/amalgamation/sqlite3.c   mem5.szAtom = (1<<nMinLog);
mem5             16276 third_party/sqlite/amalgamation/sqlite3.c   while( (int)sizeof(Mem5Link)>mem5.szAtom ){
mem5             16277 third_party/sqlite/amalgamation/sqlite3.c     mem5.szAtom = mem5.szAtom << 1;
mem5             16280 third_party/sqlite/amalgamation/sqlite3.c   mem5.nBlock = (nByte / (mem5.szAtom+sizeof(u8)));
mem5             16281 third_party/sqlite/amalgamation/sqlite3.c   mem5.zPool = zByte;
mem5             16282 third_party/sqlite/amalgamation/sqlite3.c   mem5.aCtrl = (u8 *)&mem5.zPool[mem5.nBlock*mem5.szAtom];
mem5             16285 third_party/sqlite/amalgamation/sqlite3.c     mem5.aiFreelist[ii] = -1;
mem5             16291 third_party/sqlite/amalgamation/sqlite3.c     if( (iOffset+nAlloc)<=mem5.nBlock ){
mem5             16292 third_party/sqlite/amalgamation/sqlite3.c       mem5.aCtrl[iOffset] = ii | CTRL_FREE;
mem5             16296 third_party/sqlite/amalgamation/sqlite3.c     assert((iOffset+nAlloc)>mem5.nBlock);
mem5             16301 third_party/sqlite/amalgamation/sqlite3.c     mem5.mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MEM);
mem5             16312 third_party/sqlite/amalgamation/sqlite3.c   mem5.mutex = 0;
mem5             16337 third_party/sqlite/amalgamation/sqlite3.c   nMinLog = memsys5Log(mem5.szAtom);
mem5             16339 third_party/sqlite/amalgamation/sqlite3.c     for(n=0, j=mem5.aiFreelist[i]; j>=0; j = MEM5LINK(j)->next, n++){}
mem5             16340 third_party/sqlite/amalgamation/sqlite3.c     fprintf(out, "freelist items of size %d: %d\n", mem5.szAtom << i, n);
mem5             16342 third_party/sqlite/amalgamation/sqlite3.c   fprintf(out, "mem5.nAlloc       = %llu\n", mem5.nAlloc);
mem5             16343 third_party/sqlite/amalgamation/sqlite3.c   fprintf(out, "mem5.totalAlloc   = %llu\n", mem5.totalAlloc);
mem5             16344 third_party/sqlite/amalgamation/sqlite3.c   fprintf(out, "mem5.totalExcess  = %llu\n", mem5.totalExcess);
mem5             16345 third_party/sqlite/amalgamation/sqlite3.c   fprintf(out, "mem5.currentOut   = %u\n", mem5.currentOut);
mem5             16346 third_party/sqlite/amalgamation/sqlite3.c   fprintf(out, "mem5.currentCount = %u\n", mem5.currentCount);
mem5             16347 third_party/sqlite/amalgamation/sqlite3.c   fprintf(out, "mem5.maxOut       = %u\n", mem5.maxOut);
mem5             16348 third_party/sqlite/amalgamation/sqlite3.c   fprintf(out, "mem5.maxCount     = %u\n", mem5.maxCount);
mem5             16349 third_party/sqlite/amalgamation/sqlite3.c   fprintf(out, "mem5.maxRequest   = %u\n", mem5.maxRequest);
mem5              130 third_party/sqlite/src/src/mem5.c } mem5;
mem5              135 third_party/sqlite/src/src/mem5.c #define mem5 GLOBAL(struct Mem5Global, mem5)
mem5              141 third_party/sqlite/src/src/mem5.c #define MEM5LINK(idx) ((Mem5Link *)(&mem5.zPool[(idx)*mem5.szAtom]))
mem5              149 third_party/sqlite/src/src/mem5.c   assert( i>=0 && i<mem5.nBlock );
mem5              151 third_party/sqlite/src/src/mem5.c   assert( (mem5.aCtrl[i] & CTRL_LOGSIZE)==iLogsize );
mem5              156 third_party/sqlite/src/src/mem5.c     mem5.aiFreelist[iLogsize] = next;
mem5              171 third_party/sqlite/src/src/mem5.c   assert( sqlite3_mutex_held(mem5.mutex) );
mem5              172 third_party/sqlite/src/src/mem5.c   assert( i>=0 && i<mem5.nBlock );
mem5              174 third_party/sqlite/src/src/mem5.c   assert( (mem5.aCtrl[i] & CTRL_LOGSIZE)==iLogsize );
mem5              176 third_party/sqlite/src/src/mem5.c   x = MEM5LINK(i)->next = mem5.aiFreelist[iLogsize];
mem5              179 third_party/sqlite/src/src/mem5.c     assert( x<mem5.nBlock );
mem5              182 third_party/sqlite/src/src/mem5.c   mem5.aiFreelist[iLogsize] = i;
mem5              191 third_party/sqlite/src/src/mem5.c   sqlite3_mutex_enter(mem5.mutex);
mem5              194 third_party/sqlite/src/src/mem5.c   sqlite3_mutex_leave(mem5.mutex);
mem5              205 third_party/sqlite/src/src/mem5.c     int i = ((u8 *)p-mem5.zPool)/mem5.szAtom;
mem5              206 third_party/sqlite/src/src/mem5.c     assert( i>=0 && i<mem5.nBlock );
mem5              207 third_party/sqlite/src/src/mem5.c     iSize = mem5.szAtom * (1 << (mem5.aCtrl[i]&CTRL_LOGSIZE));
mem5              221 third_party/sqlite/src/src/mem5.c   i = iFirst = mem5.aiFreelist[iLogsize];
mem5              252 third_party/sqlite/src/src/mem5.c   if( (u32)nByte>mem5.maxRequest ){
mem5              253 third_party/sqlite/src/src/mem5.c     mem5.maxRequest = nByte;
mem5              264 third_party/sqlite/src/src/mem5.c   for(iFullSz=mem5.szAtom, iLogsize=0; iFullSz<nByte; iFullSz *= 2, iLogsize++){}
mem5              270 third_party/sqlite/src/src/mem5.c   for(iBin=iLogsize; mem5.aiFreelist[iBin]<0 && iBin<=LOGMAX; iBin++){}
mem5              282 third_party/sqlite/src/src/mem5.c     mem5.aCtrl[i+newSize] = CTRL_FREE | iBin;
mem5              285 third_party/sqlite/src/src/mem5.c   mem5.aCtrl[i] = iLogsize;
mem5              288 third_party/sqlite/src/src/mem5.c   mem5.nAlloc++;
mem5              289 third_party/sqlite/src/src/mem5.c   mem5.totalAlloc += iFullSz;
mem5              290 third_party/sqlite/src/src/mem5.c   mem5.totalExcess += iFullSz - nByte;
mem5              291 third_party/sqlite/src/src/mem5.c   mem5.currentCount++;
mem5              292 third_party/sqlite/src/src/mem5.c   mem5.currentOut += iFullSz;
mem5              293 third_party/sqlite/src/src/mem5.c   if( mem5.maxCount<mem5.currentCount ) mem5.maxCount = mem5.currentCount;
mem5              294 third_party/sqlite/src/src/mem5.c   if( mem5.maxOut<mem5.currentOut ) mem5.maxOut = mem5.currentOut;
mem5              297 third_party/sqlite/src/src/mem5.c   return (void*)&mem5.zPool[i*mem5.szAtom];
mem5              310 third_party/sqlite/src/src/mem5.c   iBlock = ((u8 *)pOld-mem5.zPool)/mem5.szAtom;
mem5              313 third_party/sqlite/src/src/mem5.c   assert( iBlock>=0 && iBlock<mem5.nBlock );
mem5              314 third_party/sqlite/src/src/mem5.c   assert( ((u8 *)pOld-mem5.zPool)%mem5.szAtom==0 );
mem5              315 third_party/sqlite/src/src/mem5.c   assert( (mem5.aCtrl[iBlock] & CTRL_FREE)==0 );
mem5              317 third_party/sqlite/src/src/mem5.c   iLogsize = mem5.aCtrl[iBlock] & CTRL_LOGSIZE;
mem5              319 third_party/sqlite/src/src/mem5.c   assert( iBlock+size-1<(u32)mem5.nBlock );
mem5              321 third_party/sqlite/src/src/mem5.c   mem5.aCtrl[iBlock] |= CTRL_FREE;
mem5              322 third_party/sqlite/src/src/mem5.c   mem5.aCtrl[iBlock+size-1] |= CTRL_FREE;
mem5              323 third_party/sqlite/src/src/mem5.c   assert( mem5.currentCount>0 );
mem5              324 third_party/sqlite/src/src/mem5.c   assert( mem5.currentOut>=(size*mem5.szAtom) );
mem5              325 third_party/sqlite/src/src/mem5.c   mem5.currentCount--;
mem5              326 third_party/sqlite/src/src/mem5.c   mem5.currentOut -= size*mem5.szAtom;
mem5              327 third_party/sqlite/src/src/mem5.c   assert( mem5.currentOut>0 || mem5.currentCount==0 );
mem5              328 third_party/sqlite/src/src/mem5.c   assert( mem5.currentCount>0 || mem5.currentOut==0 );
mem5              330 third_party/sqlite/src/src/mem5.c   mem5.aCtrl[iBlock] = CTRL_FREE | iLogsize;
mem5              339 third_party/sqlite/src/src/mem5.c     if( (iBuddy+(1<<iLogsize))>mem5.nBlock ) break;
mem5              340 third_party/sqlite/src/src/mem5.c     if( mem5.aCtrl[iBuddy]!=(CTRL_FREE | iLogsize) ) break;
mem5              344 third_party/sqlite/src/src/mem5.c       mem5.aCtrl[iBuddy] = CTRL_FREE | iLogsize;
mem5              345 third_party/sqlite/src/src/mem5.c       mem5.aCtrl[iBlock] = 0;
mem5              348 third_party/sqlite/src/src/mem5.c       mem5.aCtrl[iBlock] = CTRL_FREE | iLogsize;
mem5              349 third_party/sqlite/src/src/mem5.c       mem5.aCtrl[iBuddy] = 0;
mem5              429 third_party/sqlite/src/src/mem5.c   for(iFullSz=mem5.szAtom; iFullSz<n; iFullSz *= 2);
mem5              465 third_party/sqlite/src/src/mem5.c   mem5.mutex = 0;
mem5              478 third_party/sqlite/src/src/mem5.c   mem5.szAtom = (1<<nMinLog);
mem5              479 third_party/sqlite/src/src/mem5.c   while( (int)sizeof(Mem5Link)>mem5.szAtom ){
mem5              480 third_party/sqlite/src/src/mem5.c     mem5.szAtom = mem5.szAtom << 1;
mem5              483 third_party/sqlite/src/src/mem5.c   mem5.nBlock = (nByte / (mem5.szAtom+sizeof(u8)));
mem5              484 third_party/sqlite/src/src/mem5.c   mem5.zPool = zByte;
mem5              485 third_party/sqlite/src/src/mem5.c   mem5.aCtrl = (u8 *)&mem5.zPool[mem5.nBlock*mem5.szAtom];
mem5              488 third_party/sqlite/src/src/mem5.c     mem5.aiFreelist[ii] = -1;
mem5              494 third_party/sqlite/src/src/mem5.c     if( (iOffset+nAlloc)<=mem5.nBlock ){
mem5              495 third_party/sqlite/src/src/mem5.c       mem5.aCtrl[iOffset] = ii | CTRL_FREE;
mem5              499 third_party/sqlite/src/src/mem5.c     assert((iOffset+nAlloc)>mem5.nBlock);
mem5              504 third_party/sqlite/src/src/mem5.c     mem5.mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MEM);
mem5              515 third_party/sqlite/src/src/mem5.c   mem5.mutex = 0;
mem5              540 third_party/sqlite/src/src/mem5.c   nMinLog = memsys5Log(mem5.szAtom);
mem5              542 third_party/sqlite/src/src/mem5.c     for(n=0, j=mem5.aiFreelist[i]; j>=0; j = MEM5LINK(j)->next, n++){}
mem5              543 third_party/sqlite/src/src/mem5.c     fprintf(out, "freelist items of size %d: %d\n", mem5.szAtom << i, n);
mem5              545 third_party/sqlite/src/src/mem5.c   fprintf(out, "mem5.nAlloc       = %llu\n", mem5.nAlloc);
mem5              546 third_party/sqlite/src/src/mem5.c   fprintf(out, "mem5.totalAlloc   = %llu\n", mem5.totalAlloc);
mem5              547 third_party/sqlite/src/src/mem5.c   fprintf(out, "mem5.totalExcess  = %llu\n", mem5.totalExcess);
mem5              548 third_party/sqlite/src/src/mem5.c   fprintf(out, "mem5.currentOut   = %u\n", mem5.currentOut);
mem5              549 third_party/sqlite/src/src/mem5.c   fprintf(out, "mem5.currentCount = %u\n", mem5.currentCount);
mem5              550 third_party/sqlite/src/src/mem5.c   fprintf(out, "mem5.maxOut       = %u\n", mem5.maxOut);
mem5              551 third_party/sqlite/src/src/mem5.c   fprintf(out, "mem5.maxCount     = %u\n", mem5.maxCount);
mem5              552 third_party/sqlite/src/src/mem5.c   fprintf(out, "mem5.maxRequest   = %u\n", mem5.maxRequest);