Searched refs:compare (Results 1 - 25 of 58) sorted by last modified time

123

/haiku/src/system/boot/platform/bios_ia32/
H A Dvideo.cpp62 int compare = a->width - b->width; local
63 if (compare != 0)
64 return compare;
66 compare = a->height - b->height;
67 if (compare != 0)
68 return compare;
70 // TODO: compare video_mode::mode?
84 int compare = compare_video_modes(videoMode, mode); local
85 if (compare == 0) {
90 if (compare >
[all...]
/haiku/src/system/kernel/device_manager/
H A Ddevice_manager.cpp2293 int compare = device_attr_private::Compare(attr, attributes); local
2294 if (compare != 0)
2295 return compare;
/haiku/src/kits/interface/
H A DMenu.cpp1471 BMenu::SortItems(int (*compare)(const BMenuItem*, const BMenuItem*))
1476 std::stable_sort(begin, end, BPrivate::MenuItemComparator(compare));
/haiku/src/add-ons/kernel/drivers/input/hid_shared/
H A DKeyboardProtocolHandler.cpp759 uint16 *compare = fCurrentKeys; local
768 if (compare[j] == current[i]) {
833 compare = fLastKeys;
/haiku/src/system/libnetwork/netresolv/dst/
H A Dhmac_link.c460 dst_t_func[KEY_HMAC_MD5]->compare = dst_hmac_md5_compare_keys;
H A Ddst_api.c25 * int dst_compare_keys() Function to compare two keys for equality.
213 return (key1->dk_func->compare(key1, key2));
H A Ddst_internal.h96 int (*compare)(const DST_KEY *key1, const DST_KEY *key2); member in struct:dst_func
/haiku/src/tools/fs_shell/
H A Dblock_cache.cpp71 void *compare; member in struct:FSShell::cached_block
546 Free(block->compare);
587 block->compare = NULL;
663 if (!block->is_dirty && block->compare != NULL
664 && memcmp(block->current_data, block->compare, cache->block_size)) {
668 fssh_dump_block((const char*)block->compare, 256, " ");
672 cache->Free(block->compare);
673 block->compare = NULL;
1721 if (block->compare == NULL)
1722 block->compare
[all...]
/haiku/src/tests/system/kernel/device_manager/
H A Ddma_resource_test.cpp283 fCompareArea = create_area("compare buffer", (void**)&fCompareBase,
417 // prepare compare data
427 uint8* compare = (uint8*)_SourceToCompare(fSourceVecs[i].base); local
430 memcpy(compare, (void*)_SourceToVirtual(fSourceVecs[i].base),
441 uint8* compare = (uint8*)_SourceToCompare(fSourceVecs[i].base); local
444 memcpy(compare, disk + offset, vecLength);
459 uint8* compare = (uint8*)fSuite.CompareBase(); local
462 if (data[i] != compare[i]) {
468 dump_block((char*)&compare[i], min_c(64, fSuite.Size() - i), " ");
/haiku/src/bin/bfs_tools/lib/
H A DBitmap.cpp87 uint32 compare = 1; local
88 for (int16 j = 0;j < 32;j++,compare <<= 1) {
89 if (compare & fBitmap[i])
/haiku/headers/cpp/std/
H A Dbastring.h415 int compare (const charT* s, size_type pos, size_type n) const;
416 int compare (const basic_string& str, size_type pos = 0, size_type n = npos) const;
420 int compare (size_type pos, size_type n, const basic_string& str) const function in class:basic_string
421 { return compare(str, pos, n); }
422 int compare (size_type pos, size_type n, const charT* s) const function in class:basic_string
423 { return compare(s, pos, n); }
424 int compare (size_type pos, size_type n, const charT* s, size_type n2) const function in class:basic_string
425 { if (n > n2) n = n2; return compare(s, pos, n); }
426 int compare (const charT* s, size_type pos = 0) const function in class:basic_string
427 { return compare (
[all...]
/haiku/src/system/boot/platform/efi/
H A Dvideo.cpp55 int compare = a->width - b->width; local
56 if (compare != 0)
57 return compare;
59 compare = a->height - b->height;
60 if (compare != 0)
61 return compare;
73 int compare = compare_video_modes(videoMode, mode); local
74 if (compare == 0) {
79 if (compare > 0)
/haiku/src/preferences/filetypes/
H A DApplicationTypeWindow.cpp227 int compare = strcasecmp(a->Text(), b->Text()); local
228 if (compare != 0)
229 return compare;
988 int compare = strcasecmp(item->Type(), type); local
989 if (!compare) {
996 if (compare < 0)
H A DMimeTypeListView.cpp224 int compare = strcasecmp(typeA->Supertype(), typeB->Supertype()); local
225 if (compare != 0)
226 return compare;
250 int compare = strcasecmp(typeA->Description(), typeB->Description()); local
251 if (compare != 0)
252 return compare;
/haiku/src/system/libroot/add-ons/icu/
H A DICUCollateData.cpp97 result = fCollator->compare(aIter, bIter, icuStatus);
107 result = fCollator->compare(unicodeA, unicodeB, icuStatus);
176 result = fCollator->compare(unicodeA, unicodeB, icuStatus);
/haiku/src/system/kernel/cache/
H A Dblock_cache.cpp85 void* compare; member in struct:__anon39::cached_block
1495 Free(block->compare);
1552 block->compare = NULL;
1706 // TODO: see if compare data is handled correctly here!
1708 if (block->compare != NULL)
1709 Free(block->compare);
1837 if (!block->is_dirty && block->compare != NULL
1838 && memcmp(block->current_data, block->compare, cache->block_size)) {
1842 dump_block((const char*)block->compare, 256, " ");
1846 cache->Free(block->compare);
[all...]
/haiku/src/system/kernel/fs/
H A Dvfs_boot.cpp80 int compare = strcasecmp(a->ContentName(), b->ContentName()); local
81 if (!compare)
93 return compare;
112 int compare = (int)aIsCD - (int)bIsCD; local
113 if (compare != 0)
114 return compare;
/haiku/src/kits/network/libnetapi/
H A DNetworkAddress.cpp1193 int compare; local
1201 compare = memcmp(&address.sin_addr, &otherAddress.sin_addr,
1210 compare = memcmp(&address.sin6_addr, &otherAddress.sin6_addr,
1221 // TODO: could compare index, and name, too
1222 compare = memcmp(LinkLevelAddress(), other.LinkLevelAddress(),
1227 if (compare < 0)
1229 if (compare > 0)
/haiku/src/preferences/backgrounds/
H A DBackgroundsView.cpp1052 int compare = ICompare(currentPath->Path(), pathToCheck->Path()); local
1053 return compare == 0 ? currentPath : NULL;
/haiku/src/add-ons/kernel/file_systems/bfs/
H A DCheckVisitor.cpp97 uint32 compare = 1; local
99 for (int16 j = 0; j < 32; j++, compare <<= 1) {
100 if ((compare & fCheckBitmap[i]) != 0)
H A DQuery.cpp338 // We have to be able to compare them against unshifted values
594 // only compare against the index entry when this is the correct
854 int32 compare;
862 compare = matchString(fValue.String, (char*)value) == MATCH_OK ? 0 : 1;
867 compare = compareKeys(fType, &timeValue, sizeof(int64), &fValue.Int64,
870 compare = compareKeys(fType, value, size, _Value(), fSize);
874 return compare == 0;
876 return compare != 0;
878 return compare < 0;
880 return compare <
[all...]
/haiku/src/apps/mediaplayer/playlist/
H A DPlaylist.cpp71 // compare complete path
633 FilePlaylistItem* compare = dynamic_cast<FilePlaylistItem*>(playlist->ItemAt(i)); local
634 if (compare == NULL)
636 if (compare->Ref() != ref
637 && _GetExceptExtension(BPath(&compare->Ref()).Path()) == exceptExtension )
648 UrlPlaylistItem* compare local
650 if (compare == NULL)
652 if (compare->Url() == url)
/haiku/headers/private/file_systems/
H A DQueryParser.h638 int32 compare; local
646 compare = matchString(fValue.String, (char*)value) == MATCH_OK ? 0 : 1;
648 compare = compareKeys(fType, value, size, Value(), fSize);
652 return compare == 0;
654 return compare != 0;
656 return compare < 0;
658 return compare <= 0;
660 return compare > 0;
662 return compare >= 0;
899 // only compare agains
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dsecurity.c907 /* if the records do not compare */
1490 static int compare(const struct CACHED_SECURID *cached, function
1497 /* only compare data and sizes */
2695 (cache_compare)compare);
2722 (cache_compare)compare);
2834 (cache_compare)compare);
2860 (cache_compare)compare);
2925 (cache_compare)compare);
2981 (cache_compare)compare);
/haiku/src/kits/print/
H A DPicturePrinter.cpp315 static bool compare(pattern a, pattern b) { function
324 if (compare(p, B_SOLID_HIGH)) Print("B_SOLID_HIGH");
325 else if (compare(p, B_SOLID_LOW)) Print("B_SOLID_LOW");
326 else if (compare(p, B_MIXED_COLORS)) Print("B_MIXED_COLORS");

Completed in 342 milliseconds

123