这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@devnexen
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented May 21, 2021

Codecov Report

Merging #970 (bad3bf6) into develop (c918062) will decrease coverage by 1.65%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #970      +/-   ##
===========================================
- Coverage    77.46%   75.81%   -1.66%     
===========================================
  Files           74       74              
  Lines         8313     8082     -231     
  Branches      1374     1343      -31     
===========================================
- Hits          6440     6127     -313     
- Misses        1339     1425      +86     
+ Partials       534      530       -4     
Flag Coverage Δ
macos_clang 68.55% <ø> (ø)
macos_gcc 67.45% <ø> (ø)
ubuntu_clang ?
ubuntu_clang_debug ?
ubuntu_clang_inflate_allow_invalid_dist ?
ubuntu_clang_inflate_strict ?
ubuntu_clang_mmap ?
ubuntu_clang_msan ?
ubuntu_gcc 68.70% <ø> (-5.02%) ⬇️
ubuntu_gcc_aarch64 68.98% <ø> (-5.27%) ⬇️
ubuntu_gcc_aarch64_compat_no_opt 67.32% <ø> (-5.65%) ⬇️
ubuntu_gcc_aarch64_no_acle 67.89% <ø> (-5.40%) ⬇️
ubuntu_gcc_aarch64_no_neon 68.29% <ø> (-5.45%) ⬇️
ubuntu_gcc_armhf 68.97% <ø> (-5.28%) ⬇️
ubuntu_gcc_armhf_compat_no_opt 67.32% <ø> (-5.67%) ⬇️
ubuntu_gcc_armhf_no_acle 69.13% <ø> (-5.31%) ⬇️
ubuntu_gcc_armhf_no_neon 69.46% <ø> (-5.37%) ⬇️
ubuntu_gcc_armsf 68.98% <ø> (-5.28%) ⬇️
ubuntu_gcc_armsf_compat_no_opt 67.32% <ø> (-5.67%) ⬇️
ubuntu_gcc_compat_no_opt 68.71% <ø> (-5.48%) ⬇️
ubuntu_gcc_mingw_i686 0.00% <ø> (ø)
ubuntu_gcc_mingw_x86_64 0.00% <ø> (ø)
ubuntu_gcc_no_avx2 69.06% <ø> (-5.14%) ⬇️
ubuntu_gcc_no_pclmulqdq 66.88% <ø> (-5.24%) ⬇️
ubuntu_gcc_no_sse2 68.11% <ø> (-5.07%) ⬇️
ubuntu_gcc_no_sse4 66.85% <ø> (-5.25%) ⬇️
ubuntu_gcc_o3 68.43% <ø> (-5.17%) ⬇️
ubuntu_gcc_osb 70.98% <ø> (-5.55%) ⬇️
ubuntu_gcc_ppc 69.16% <ø> (-5.43%) ⬇️
ubuntu_gcc_ppc64 69.95% <ø> (-5.41%) ⬇️
ubuntu_gcc_ppc64le 68.65% <ø> (-5.44%) ⬇️
ubuntu_gcc_s390x 67.90% <ø> (-5.17%) ⬇️
ubuntu_gcc_sparc64 70.35% <ø> (-5.46%) ⬇️
win64_gcc 70.39% <ø> (ø)
win64_gcc_compat_no_opt 73.88% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
zutil_p.h 40.00% <ø> (-26.67%) ⬇️
zutil.c 37.50% <0.00%> (-44.65%) ⬇️
deflate.h 8.33% <0.00%> (-41.67%) ⬇️
trees.c 65.07% <0.00%> (-31.15%) ⬇️
trees_emit.h 67.53% <0.00%> (-27.53%) ⬇️
arch/x86/compare258_avx.c 96.42% <0.00%> (-3.58%) ⬇️
test/fuzz/example_small_fuzzer.c 86.44% <0.00%> (-2.09%) ⬇️
arch/x86/adler32_avx.c 98.33% <0.00%> (-1.67%) ⬇️
test/fuzz/example_flush_fuzzer.c 88.70% <0.00%> (-1.62%) ⬇️
... and 30 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c918062...bad3bf6. Read the comment docs.

zutil.h Outdated
# if defined(__OpenBSD__)
# define ZSWAP16(q) __builtin_bswap16(q)
# define ZSWAP32(q) __builtin_bswap32(q)
# define ZSWAP64(q) __builtin_bswap64(q)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be swap16, swap32 and swap64 according to OpenBSD headers... We should not use compiler builtins if functions exist in standard headers. Might warrant separating OpenBSD as own #elif block.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes there are but tried to use intrinsics rather than the macros (might be slower) but nevermind I ll change.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least gcc should map the functions in the standard headers automatically to the intrinsics when optimizations are enabled.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true

@devnexen devnexen force-pushed the other_oses_build_fix branch from 3d59315 to bad3bf6 Compare May 21, 2021 18:57
@Dead2 Dead2 merged commit 8b56300 into zlib-ng:develop May 27, 2021
Dead2 added a commit that referenced this pull request Jun 11, 2021
- Minor code cleanup #983 #984
- Fix mpicc compilation #959
- Fix build on NetBSD #964
- Fix build on OpenBSD #970
- Fix build on Cygwin #972 #974
- Fix linter warnings in configure #975
- Spelling fixes #961
- Improve unistd.h handling #960
- Remove stdarg.h detection #976
- CI/Test improvements #977 #981 #985
- Cmake improvements #980
Dead2 added a commit that referenced this pull request Jun 11, 2021
- Minor code cleanup #983 #984
- Fix mpicc compilation #959
- Fix build on NetBSD #964
- Fix build on OpenBSD #970
- Fix build on Cygwin #972 #974
- Fix linter warnings in configure #975
- Spelling fixes #961
- Improve unistd.h handling #960
- Remove stdarg.h detection #976
- CI/Test improvements #977 #981 #985
- Cmake improvements #980 #989
Dead2 added a commit that referenced this pull request Jun 11, 2021
- Fix inflate corruption #982
- Minor code cleanup #983 #984
- Fix mpicc compilation #959
- Fix build on NetBSD #964
- Fix build on OpenBSD #970
- Fix build on Cygwin #972 #974
- Fix linter warnings in configure #975
- Spelling fixes #961
- Improve unistd.h handling #960
- Remove stdarg.h detection #976
- CI/Test improvements #977 #981 #985
- Cmake improvements #980 #989
@Dead2 Dead2 mentioned this pull request Jun 11, 2021
Dead2 added a commit that referenced this pull request Jun 11, 2021
- Fix inflate corruption #982
- Minor code cleanup #983 #984
- Fix mpicc compilation #959
- Fix build on NetBSD #964
- Fix build on OpenBSD #970
- Fix build on Cygwin #972 #974
- Fix linter warnings in configure #975
- Spelling fixes #961
- Improve unistd.h handling #960
- Remove stdarg.h detection #976
- CI/Test improvements #977 #981 #985
- Cmake improvements #980 #989
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants