@@@ man wip
[mLib] / hash / t / hash-test.c
index 3c637dc..57a6ce8 100644 (file)
@@ -111,20 +111,20 @@ static void run_step(struct tvec_state *tv, tvec_testfn *fn, void *ctx)
 static const struct tvec_env step_testenv = { 0, 0, 0, 0, run_step, 0, 0 };
 
 static const struct tvec_regdef unihash_regs[] = {
-  { "k", RK, &tvty_uint, 0, { &tvrange_u32 } },
-  { "m", RM, &tvty_bytes, 0 },
-  { "h", RH, &tvty_uint, 0, { &tvrange_u32 } },
+  { "k", &tvty_uint, RK, 0, { &tvrange_u32 } },
+  { "m", &tvty_bytes, RM, 0 },
+  { "h", &tvty_uint, RH, 0, { &tvrange_u32 } },
   TVEC_ENDREGS
 };
 
 static const struct tvec_regdef crc32_regs[] = {
-  { "m", RM, &tvty_bytes, 0 },
-  { "h", RH, &tvty_uint, 0, { &tvrange_u32 } },
+  { "m", &tvty_bytes, RM, 0 },
+  { "h", &tvty_uint, RH, 0, { &tvrange_u32 } },
   TVEC_ENDREGS
 };
 
 static const struct tvec_regdef bench_regs[] = {
-  { "msz", RM, &tvty_buffer, TVRF_ID },
+  { "msz", &tvty_buffer, RM, TVRF_ID },
   TVEC_ENDREGS
 };