• Home
  • Raw
  • Download

Lines Matching refs:len

11   uint64_t len;  member
19 cksm_by_insn(const uint32_t *buff, uint64_t len, uint32_t sum) in cksm_by_insn() argument
22 uint64_t init_length = len; in cksm_by_insn()
27 register uint64_t reg3 asm("3") = len; in cksm_by_insn()
36 len = reg3; in cksm_by_insn()
43 if(len != 0) in cksm_by_insn()
50 result.len = len; in cksm_by_insn()
60 cksm_by_hand(const uint32_t *buff, uint64_t len, uint32_t sum) in cksm_by_hand() argument
67 for (n=0; n < len/4; n++) { in cksm_by_hand()
79 if (len != 0) { in cksm_by_hand()
80 switch (len % 4) { in cksm_by_hand()
99 if (len % 4) { in cksm_by_hand()
110 result.addr = (uint64_t)buff + len; in cksm_by_hand()
111 result.len = 0; in cksm_by_hand()
137 if (by_hand.len != by_insn.len) { in compare_results()
140 by_hand.len, by_insn.len); in compare_results()
167 run_test(const char *name, const uint32_t *buff, uint64_t len, uint32_t sum, in run_test() argument
172 by_hand = cksm_by_hand(buff, len, sum); in run_test()
173 by_insn = cksm_by_insn(buff, len, sum); in run_test()
182 uint64_t len; in main() local
188 len = 4; in main()
190 run_test("test1", data, len, sum, expected_sum); in main()
196 len = 4; in main()
198 run_test("test2", data, len, sum, expected_sum); in main()
218 len = 60; in main()
220 run_test("test3", data, len, sum, expected_sum); in main()
234 len = 24; in main()
236 run_test("test4", data, len, sum, expected_sum); in main()
241 len = 0; in main()
244 run_test("test5", NULL, len, sum, expected_sum); in main()
249 len = 1; in main()
252 run_test("test6", data, len, sum, expected_sum); in main()
257 len = 1; in main()
260 run_test("test7", data, len, sum, expected_sum); in main()
265 len = 2; in main()
268 run_test("test8", data, len, sum, expected_sum); in main()
273 len = 2; in main()
276 run_test("test9", data, len, sum, expected_sum); in main()
281 len = 3; in main()
284 run_test("test10", data, len, sum, expected_sum); in main()
289 len = 3; in main()
292 run_test("test11", data, len, sum, expected_sum); in main()