1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-28 16:00:25 +08:00

inline crypto

This commit is contained in:
源文雨
2022-05-04 18:53:04 +08:00
parent 0f97db5803
commit b63f312f54
5 changed files with 178 additions and 183 deletions

2
dict.h
View File

@@ -131,7 +131,7 @@ static void close_dict(uint8_t lock_type, uint32_t index, pthread_rwlock_t* mu)
puts("Close dict");
}
static inline int is_md5_equal(uint8_t* digest) {
static inline int is_dict_md5_equal(uint8_t* digest) {
#ifdef CPUBIT64
uint64_t* digest2 = (uint64_t*)digest;
return (digest2[0] == _dict_md5_2[0]) &&