Searched refs:ptr (Results 1 – 11 of 11) sorted by relevance
| /leveldb-1.20/util/ |
| H A D | coding.cc | 52 *(ptr++) = v; in EncodeVarint32() 54 *(ptr++) = v | B; in EncodeVarint32() 55 *(ptr++) = v>>7; in EncodeVarint32() 57 *(ptr++) = v | B; in EncodeVarint32() 58 *(ptr++) = (v>>7) | B; in EncodeVarint32() 59 *(ptr++) = v>>14; in EncodeVarint32() 61 *(ptr++) = v | B; in EncodeVarint32() 62 *(ptr++) = (v>>7) | B; in EncodeVarint32() 64 *(ptr++) = v>>21; in EncodeVarint32() 66 *(ptr++) = v | B; in EncodeVarint32() [all …]
|
| H A D | coding.h | 58 inline uint32_t DecodeFixed32(const char* ptr) { in DecodeFixed32() argument 62 memcpy(&result, ptr, sizeof(result)); // gcc optimizes this to a plain load in DecodeFixed32() 65 return ((static_cast<uint32_t>(static_cast<unsigned char>(ptr[0]))) in DecodeFixed32() 66 | (static_cast<uint32_t>(static_cast<unsigned char>(ptr[1])) << 8) in DecodeFixed32() 67 | (static_cast<uint32_t>(static_cast<unsigned char>(ptr[2])) << 16) in DecodeFixed32() 68 | (static_cast<uint32_t>(static_cast<unsigned char>(ptr[3])) << 24)); in DecodeFixed32() 72 inline uint64_t DecodeFixed64(const char* ptr) { in DecodeFixed64() argument 76 memcpy(&result, ptr, sizeof(result)); // gcc optimizes this to a plain load in DecodeFixed64() 79 uint64_t lo = DecodeFixed32(ptr); in DecodeFixed64() 80 uint64_t hi = DecodeFixed32(ptr + 4); in DecodeFixed64()
|
| H A D | cache.cc | 82 LRUHandle* old = *ptr; in Insert() 84 *ptr = h; in Insert() 97 LRUHandle** ptr = FindPointer(key, hash); in Remove() local 98 LRUHandle* result = *ptr; in Remove() 100 *ptr = result->next_hash; in Remove() 118 while (*ptr != NULL && in FindPointer() 119 ((*ptr)->hash != hash || key != (*ptr)->key())) { in FindPointer() 120 ptr = &(*ptr)->next_hash; in FindPointer() 122 return ptr; in FindPointer() 139 h->next_hash = *ptr; in Resize() [all …]
|
| H A D | env_test.cc | 26 static void SetBool(void* ptr) { in SetBool() argument 27 reinterpret_cast<port::AtomicPointer*>(ptr)->NoBarrier_Store(ptr); in SetBool()
|
| /leveldb-1.20/db/ |
| H A D | log_writer.cc | 37 const char* ptr = slice.data(); in AddRecord() local 76 s = EmitPhysicalRecord(type, ptr, fragment_length); in AddRecord() 77 ptr += fragment_length; in AddRecord() 84 Status Writer::EmitPhysicalRecord(RecordType t, const char* ptr, size_t n) { in EmitPhysicalRecord() argument 95 uint32_t crc = crc32c::Extend(type_crc_[t], ptr, n); in EmitPhysicalRecord() 102 s = dest_->Append(Slice(ptr, n)); in EmitPhysicalRecord()
|
| H A D | c_test.c | 57 static void Free(char** ptr) { in Free() argument 58 if (*ptr) { in Free() 59 free(*ptr); in Free() 60 *ptr = NULL; in Free() 89 static void CheckPut(void* ptr, in CheckPut() argument 92 int* state = (int*) ptr; in CheckPut() 108 static void CheckDel(void* ptr, const char* k, size_t klen) { in CheckDel() argument 109 int* state = (int*) ptr; in CheckDel()
|
| H A D | log_writer.h | 44 Status EmitPhysicalRecord(RecordType type, const char* ptr, size_t length);
|
| H A D | c.cc | 583 void leveldb_free(void* ptr) { in leveldb_free() argument 584 free(ptr); in leveldb_free()
|
| H A D | db_impl.cc | 86 static void ClipToRange(T* ptr, V minvalue, V maxvalue) { in ClipToRange() argument 87 if (static_cast<V>(*ptr) > maxvalue) *ptr = maxvalue; in ClipToRange() 88 if (static_cast<V>(*ptr) < minvalue) *ptr = minvalue; in ClipToRange()
|
| H A D | db_bench.cc | 650 void *ptr = NULL; in AcquireLoad() local 654 ptr = ap.Acquire_Load(); in AcquireLoad() 659 if (ptr == NULL) exit(1); // Disable unused variable warning. in AcquireLoad()
|
| /leveldb-1.20/include/leveldb/ |
| H A D | c.h | 278 extern void leveldb_free(void* ptr);
|