Branch Coverage

deps/libgit2/deps/zlib/crc32.c
Criterion Covered Total %
branch 18 36 50.0


line true false branch
554 0 0 if (a & m) {
556 0 0 if ((a & (m - 1)) == 0)
560 0 0 b = b & 1 ? (b >> 1) ^ POLY : b >> 1;
576 0 0 while (n) {
577 0 0 if (n & 1)
727 720 90 for (k = 0; k < W; k++)
736 0 0 for (k = 0; k < W; k++)
751 47 45 if (buf == Z_NULL) return 0;
763 18 27 if (len >= N * W + W - 1) {
770 80 0 while (len && ((z_size_t)buf & (W - 1)) != 0) {
62 18 while (len && ((z_size_t)buf & (W - 1)) != 0) {
785 18 0 if (*(unsigned char *)&endian) {
833 24 18 while (--blks) {
871 168 24 for (k = 1; k < W; k++) {
955 0 0 while (--blks) {
993 0 0 for (k = 1; k < W; k++) {
1046 130 45 while (len >= 8) {
1057 190 45 while (len) {