OpenCoverage

hash-pjw.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/hash-pjw.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10size_t-
11hash_pjw (const void *x, size_t tablesize)-
12{-
13 const char *s;-
14 size_t h = 0;-
15-
16 for (s = x; *
*sDescription
TRUEevaluated 378587 times by 6 tests
Evaluated by:
  • cp
  • ginstall
  • ln
  • mv
  • readlink
  • realpath
FALSEevaluated 18032 times by 6 tests
Evaluated by:
  • cp
  • ginstall
  • ln
  • mv
  • readlink
  • realpath
s
*sDescription
TRUEevaluated 378587 times by 6 tests
Evaluated by:
  • cp
  • ginstall
  • ln
  • mv
  • readlink
  • realpath
FALSEevaluated 18032 times by 6 tests
Evaluated by:
  • cp
  • ginstall
  • ln
  • mv
  • readlink
  • realpath
; s++)
18032-378587
17 h = *s + ((h << 9) | (h >> ((sizeof (size_t) * 8) - 9)));
executed 378587 times by 6 tests: h = *s + ((h << 9) | (h >> ((sizeof (size_t) * 8) - 9)));
Executed by:
  • cp
  • ginstall
  • ln
  • mv
  • readlink
  • realpath
378587
18-
19 return
executed 18032 times by 6 tests: return h % tablesize;
Executed by:
  • cp
  • ginstall
  • ln
  • mv
  • readlink
  • realpath
h % tablesize;
executed 18032 times by 6 tests: return h % tablesize;
Executed by:
  • cp
  • ginstall
  • ln
  • mv
  • readlink
  • realpath
18032
20}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2