330{
331
332 static const WCHAR str_hash_tests[][10] =
333 {
340 };
341
342 static const int int_hash_tests[] = {
343 0, -1, 100, 1, 255
344 };
345
346 static const FLOAT float_hash_tests[] = {
347 0.0, -1.0, 100.0, 1.0, 255.0, 1.234, 2175.0, 6259.0
348 };
349
350 IDictionary *dict;
359
361 &IID_IDictionary, (void**)&dict);
363
367 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
371
373 {
375
376 hr = IDictionary_put_CompareMode(dict, BinaryCompare);
378
382 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
387
391
395 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
400
402 hr = IDictionary_put_CompareMode(dict, DatabaseCompare);
404
408 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
413 }
414
418 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
422
426 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
430
434 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
438
442 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
446
450 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
454
458 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
462
467
469
473 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
477
478 i2 = int_hash_tests[
i];
482 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
486
490 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
494
495 i4 = int_hash_tests[
i];
499 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
503
508 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
512
513 ui1 = int_hash_tests[
i];
517 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
521 }
522
523
525 fx4.
i.exp_bias = 0xff;
526
530 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
535
536
539 fx4.
i.exp_bias = 0xff;
540
544 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
548
549
551 fx8.
i.exp_bias = 0x7ff;
552
556 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
561
565 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
570
571
575 fx8.
i.exp_bias = 0x7ff;
576
580 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
584
588 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
592
594 double dbl;
597
599
603 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
607
608 flt = float_hash_tests[
i];
612 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
616
620 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
624
625 dbl = float_hash_tests[
i];
629 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
633
637 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
641
643 date = float_hash_tests[
i];
646 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
650 }
651
652
657 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
661
662
667 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
671
676 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
680
681
686 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
690
695 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
699
700
701if (0) {
704 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
705}
711 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
715
721 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
725
726
732 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
736
742 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
746
750 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
754
758 hr = IDictionary_get_HashVal(dict, &
key, &
hash);
762
763 IDictionary_Release(dict);
764}
static DWORD get_str_hash(const WCHAR *str, CompareMethod method)
static DWORD get_num_hash(FLOAT num)
static DWORD get_ptr_hash(void *ptr)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
static IUnknown test_unk2
static IDispatch test_disp