Skip to content

Commit

Permalink
Merge pull request #651 from rouault/SSE2NEON_SUPPRESS_WARNINGS
Browse files Browse the repository at this point in the history
Allow to specify -DSSE2NEON_SUPPRESS_WARNINGS
  • Loading branch information
jserv authored Nov 4, 2024
2 parents b72d48e + 09e4a8a commit 5b35287
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ Considering the balance between correctness and performance, `sse2neon` recogniz
* `SSE2NEON_PRECISE_DIV`: Enable precise implementation of `_mm_rcp_ps` and `_mm_div_ps` by additional Netwon-Raphson iteration for accuracy.
* `SSE2NEON_PRECISE_SQRT`: Enable precise implementation of `_mm_sqrt_ps` and `_mm_rsqrt_ps` by additional Netwon-Raphson iteration for accuracy.
* `SSE2NEON_PRECISE_DP`: Enable precise implementation of `_mm_dp_pd`. When the conditional bit is not set, the corresponding multiplication would not be executed.
* `SSE2NEON_SUPPRESS_WARNINGS`: Set this macro to disable the warning which is emitted by default when optimizations are enabled.

The above are turned off by default, and you should define the corresponding macro(s) as `1` before including `sse2neon.h` if you need the precise implementations.

Expand Down
2 changes: 1 addition & 1 deletion sse2neon.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
#warning "GCC versions earlier than 10 are not supported."
#endif

#ifdef __OPTIMIZE__
#if defined(__OPTIMIZE__) && !defined(SSE2NEON_SUPPRESS_WARNINGS)
#warning \
"Report any potential compiler optimization issues when using SSE2NEON. See the 'Optimization' section at https://github.com/DLTcollab/sse2neon."
#endif
Expand Down

0 comments on commit 5b35287

Please sign in to comment.