Lines Matching refs:key2
260 BPlusTree::CompareKeys(const void *key1, int keyLength1, const void *key2, int keyLength2)
287 return compareKeys(type, key1, keyLength1, key2, keyLength2);
817 BFS::compareKeys(type_code type, const void *key1, int keyLength1, const void *key2, int keyLength2)
820 if (key1 == NULL || key2 == NULL)
828 int result = strncmp((const char *)key1, (const char *)key2, len);
831 && !(((const char *)key1)[len] == '\0' && ((const char *)key2)[len] == '\0'))
839 return *(int32 *)key1 - *(int32 *)key2;
843 if (*(uint32 *)key1 == *(uint32 *)key2)
845 else if (*(uint32 *)key1 > *(uint32 *)key2)
852 if (*(int64 *)key1 == *(int64 *)key2)
854 else if (*(int64 *)key1 > *(int64 *)key2)
860 if (*(uint64 *)key1 == *(uint64 *)key2)
862 else if (*(uint64 *)key1 > *(uint64 *)key2)
869 float result = *(float *)key1 - *(float *)key2;
878 double result = *(double *)key1 - *(double *)key2;