Lines Matching refs:hash
178 DWORD hash = 0; in get_str_hash() local
188 hash += (hash << 4) + ch; in get_str_hash()
192 return hash % 1201; in get_str_hash()
353 VARIANT key, hash; in test_hash_value() local
368 VariantInit(&hash); in test_hash_value()
369 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
371 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
372 ok(V_I4(&hash) == 0, "got %d\n", V_I4(&hash)); in test_hash_value()
382 VariantInit(&hash); in test_hash_value()
383 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
385 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
386 … ok(V_I4(&hash) == expected, "%d: binary mode: got hash 0x%08x, expected 0x%08x\n", i, V_I4(&hash), in test_hash_value()
396 VariantInit(&hash); in test_hash_value()
397 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
399 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
400 … ok(V_I4(&hash) == expected, "%d: text mode: got hash 0x%08x, expected 0x%08x\n", i, V_I4(&hash), in test_hash_value()
410 VariantInit(&hash); in test_hash_value()
411 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
413 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
414 … ok(V_I4(&hash) == expected, "%d: db mode: got hash 0x%08x, expected 0x%08x\n", i, V_I4(&hash), in test_hash_value()
421 VariantInit(&hash); in test_hash_value()
422 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
424 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
425 ok(V_I4(&hash) == ~0u, "got hash 0x%08x\n", V_I4(&hash)); in test_hash_value()
429 VariantInit(&hash); in test_hash_value()
430 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
432 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
433 ok(V_I4(&hash) == ~0u, "got hash 0x%08x\n", V_I4(&hash)); in test_hash_value()
437 VariantInit(&hash); in test_hash_value()
438 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
440 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
441 ok(V_I4(&hash) == ~0u || broken(V_I4(&hash) == 0xa1), "got hash 0x%08x\n", V_I4(&hash)); in test_hash_value()
445 VariantInit(&hash); in test_hash_value()
446 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
448 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
449 ok(V_I4(&hash) == ~0u, "got hash 0x%08x\n", V_I4(&hash)); in test_hash_value()
453 VariantInit(&hash); in test_hash_value()
454 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
456 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
457 ok(V_I4(&hash) == ~0u, "got hash 0x%08x\n", V_I4(&hash)); in test_hash_value()
461 VariantInit(&hash); in test_hash_value()
462 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
464 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
465 ok(V_I4(&hash) == ~0u, "got hash 0x%08x\n", V_I4(&hash)); in test_hash_value()
476 VariantInit(&hash); in test_hash_value()
477 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
479 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
480 ok(V_I4(&hash) == expected, "%d: got hash 0x%08x, expected 0x%08x\n", i, V_I4(&hash), in test_hash_value()
486 VariantInit(&hash); in test_hash_value()
487 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
489 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
490 ok(V_I4(&hash) == expected, "%d: got hash 0x%08x, expected 0x%08x\n", i, V_I4(&hash), in test_hash_value()
495 VariantInit(&hash); in test_hash_value()
496 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
498 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
499 ok(V_I4(&hash) == expected, "%d: got hash 0x%08x, expected 0x%08x\n", i, V_I4(&hash), in test_hash_value()
505 VariantInit(&hash); in test_hash_value()
506 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
508 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
509 ok(V_I4(&hash) == expected, "%d: got hash 0x%08x, expected 0x%08x\n", i, V_I4(&hash), in test_hash_value()
515 VariantInit(&hash); in test_hash_value()
516 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
518 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
519 ok(V_I4(&hash) == expected, "%d: got hash 0x%08x, expected 0x%08x\n", i, V_I4(&hash), in test_hash_value()
525 VariantInit(&hash); in test_hash_value()
526 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
528 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
529 ok(V_I4(&hash) == expected, "%d: got hash 0x%08x, expected 0x%08x\n", i, V_I4(&hash), in test_hash_value()
539 VariantInit(&hash); in test_hash_value()
540 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
542 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
543 ok(V_I4(&hash) == ~0u || broken(V_I4(&hash) == 0 /* win2k */ || in test_hash_value()
544 V_I4(&hash) == 0x1f4 /* vista, win2k8 */), "got hash 0x%08x\n", V_I4(&hash)); in test_hash_value()
553 V_I4(&hash) = 10; in test_hash_value()
554 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
556 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
557 ok(V_I4(&hash) == 0, "got hash 0x%08x\n", V_I4(&hash)); in test_hash_value()
565 VariantInit(&hash); in test_hash_value()
566 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
568 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
569 ok(V_I4(&hash) == ~0u || broken(V_I4(&hash) == 0 /* win2k */ || in test_hash_value()
570 V_I4(&hash) == 0x1f4 /* vista, win2k8 */), "got hash 0x%08x\n", V_I4(&hash)); in test_hash_value()
574 VariantInit(&hash); in test_hash_value()
575 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
577 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
578 ok(V_I4(&hash) == ~0u || broken(V_I4(&hash) == 0 /* win2k */ || in test_hash_value()
579 V_I4(&hash) == 0x1f4 /* vista, win2k8 */), "got hash 0x%08x\n", V_I4(&hash)); in test_hash_value()
589 V_I4(&hash) = 10; in test_hash_value()
590 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
592 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
593 ok(V_I4(&hash) == 0, "got hash 0x%08x\n", V_I4(&hash)); in test_hash_value()
597 V_I4(&hash) = 10; in test_hash_value()
598 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
600 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
601 ok(V_I4(&hash) == 0, "got hash 0x%08x\n", V_I4(&hash)); in test_hash_value()
612 VariantInit(&hash); in test_hash_value()
613 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
615 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
616 ok(V_I4(&hash) == expected, "%d: got hash 0x%08x, expected 0x%08x\n", i, V_I4(&hash), in test_hash_value()
622 VariantInit(&hash); in test_hash_value()
623 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
625 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
626 ok(V_I4(&hash) == expected, "%d: got hash 0x%08x, expected 0x%08x\n", i, V_I4(&hash), in test_hash_value()
631 VariantInit(&hash); in test_hash_value()
632 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
634 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
635 ok(V_I4(&hash) == expected, "%d: got hash 0x%08x, expected 0x%08x\n", i, V_I4(&hash), in test_hash_value()
641 VariantInit(&hash); in test_hash_value()
642 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
644 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
645 ok(V_I4(&hash) == expected, "%d: got hash 0x%08x, expected 0x%08x\n", i, V_I4(&hash), in test_hash_value()
650 VariantInit(&hash); in test_hash_value()
651 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
653 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
654 ok(V_I4(&hash) == expected, "%d: got hash 0x%08x, expected 0x%08x\n", i, V_I4(&hash), in test_hash_value()
660 VariantInit(&hash); in test_hash_value()
661 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
663 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
664 ok(V_I4(&hash) == expected, "%d: got hash 0x%08x, expected 0x%08x\n", i, V_I4(&hash), in test_hash_value()
671 VariantInit(&hash); in test_hash_value()
672 V_I4(&hash) = 1; in test_hash_value()
673 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
675 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
676 ok(V_I4(&hash) == 0, "got hash 0x%08x, expected 0\n", V_I4(&hash)); in test_hash_value()
681 VariantInit(&hash); in test_hash_value()
683 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
685 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
686 ok(V_I4(&hash) == ~0u, "got hash 0x%08x, expected 0x%08x\n", V_I4(&hash), expected); in test_hash_value()
690 VariantInit(&hash); in test_hash_value()
692 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
694 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
695 ok(V_I4(&hash) == expected, "got hash 0x%08x, expected 0x%08x\n", V_I4(&hash), expected); in test_hash_value()
700 VariantInit(&hash); in test_hash_value()
702 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
704 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
705 ok(V_I4(&hash) == expected, "got hash 0x%08x, expected 0x%08x\n", V_I4(&hash), expected); in test_hash_value()
709 VariantInit(&hash); in test_hash_value()
711 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
713 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
714 ok(V_I4(&hash) == expected, "got hash 0x%08x, expected 0x%08x\n", V_I4(&hash), expected); in test_hash_value()
720 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
725 VariantInit(&hash); in test_hash_value()
726 V_I4(&hash) = 1; in test_hash_value()
727 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
729 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
730 ok(V_I4(&hash) == 0, "got hash 0x%08x, expected 0\n", V_I4(&hash)); in test_hash_value()
735 VariantInit(&hash); in test_hash_value()
737 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
739 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
740 ok(V_I4(&hash) == expected, "got hash 0x%08x, expected 0x%08x\n", V_I4(&hash), expected); in test_hash_value()
746 VariantInit(&hash); in test_hash_value()
748 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
750 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
751 ok(V_I4(&hash) == expected, "got hash 0x%08x, expected 0x%08x\n", V_I4(&hash), expected); in test_hash_value()
756 VariantInit(&hash); in test_hash_value()
758 hr = IDictionary_get_HashVal(dict, &key, &hash); in test_hash_value()
760 ok(V_VT(&hash) == VT_I4, "got %d\n", V_VT(&hash)); in test_hash_value()
761 ok(V_I4(&hash) == expected, "got hash 0x%08x, expected 0x%08x\n", V_I4(&hash), expected); in test_hash_value()