• Home
  • Raw
  • Download

Lines Matching refs:hash

24     REPORTER_ASSERT(r, SkOpts::hash(nullptr, 0) == 0);  in DEF_TEST()
26 const uint32_t hash = SkOpts::hash(data, kBytes); in DEF_TEST() local
28 REPORTER_ASSERT(r, hash == SkOpts::hash(data, kBytes)); in DEF_TEST()
34 const uint32_t tweakedHash = SkOpts::hash(tweaked, kBytes); in DEF_TEST()
35 REPORTER_ASSERT(r, tweakedHash != hash); in DEF_TEST()
36 REPORTER_ASSERT(r, tweakedHash == SkOpts::hash(tweaked, kBytes)); in DEF_TEST()
61 REPORTER_ASSERT(r, SkOpts::hash(a, sizeof(a)) != SkOpts::hash(b, sizeof(b))); in DEF_TEST()
71 REPORTER_ASSERT(r, SkOpts::hash(a, sizeof(a)) != SkOpts::hash(b, sizeof(b))); in DEF_TEST()
81 REPORTER_ASSERT(r, SkOpts::hash(bytes, 0) == 0x00000000, "%08x", SkOpts::hash(bytes, 0)); in DEF_TEST()
82 REPORTER_ASSERT(r, SkOpts::hash(bytes, 1) == 0x00000000, "%08x", SkOpts::hash(bytes, 1)); in DEF_TEST()
83 REPORTER_ASSERT(r, SkOpts::hash(bytes, 2) == 0xf26b8303, "%08x", SkOpts::hash(bytes, 2)); in DEF_TEST()
84 REPORTER_ASSERT(r, SkOpts::hash(bytes, 7) == 0x18678721, "%08x", SkOpts::hash(bytes, 7)); in DEF_TEST()
85 REPORTER_ASSERT(r, SkOpts::hash(bytes, 32) == 0x9d1ef96b, "%08x", SkOpts::hash(bytes, 32)); in DEF_TEST()
86 REPORTER_ASSERT(r, SkOpts::hash(bytes, 63) == 0xc4b07d3a, "%08x", SkOpts::hash(bytes, 63)); in DEF_TEST()
87 REPORTER_ASSERT(r, SkOpts::hash(bytes, 64) == 0x3535a461, "%08x", SkOpts::hash(bytes, 64)); in DEF_TEST()
88 REPORTER_ASSERT(r, SkOpts::hash(bytes, 99) == 0x3f98a130, "%08x", SkOpts::hash(bytes, 99)); in DEF_TEST()
89 REPORTER_ASSERT(r, SkOpts::hash(bytes,255) == 0x3b9ceab2, "%08x", SkOpts::hash(bytes,255)); in DEF_TEST()