| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/hash-pjw.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||
| 2 | - | |||||||||||||
| 3 | - | |||||||||||||
| 4 | - | |||||||||||||
| 5 | - | |||||||||||||
| 6 | - | |||||||||||||
| 7 | - | |||||||||||||
| 8 | - | |||||||||||||
| 9 | - | |||||||||||||
| 10 | size_t | - | ||||||||||||
| 11 | hash_pjw (const void *x, size_t tablesize) | - | ||||||||||||
| 12 | { | - | ||||||||||||
| 13 | const char *s; | - | ||||||||||||
| 14 | size_t h = 0; | - | ||||||||||||
| 15 | - | |||||||||||||
| 16 | for (s = x; *
| 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:
| 378587 | ||||||||||||
| 18 | - | |||||||||||||
| 19 | return executed 18032 times by 6 tests: h % tablesize;return h % tablesize;Executed by:
executed 18032 times by 6 tests: return h % tablesize;Executed by:
| 18032 | ||||||||||||
| 20 | } | - | ||||||||||||
| Switch to Source code | Preprocessed file |