shibatch / sleef

SIMD Library for Evaluating Elementary Functions, vectorized libm and DFT
https://sleef.org
Boost Software License 1.0
628 stars 126 forks source link

Fix disable fp contractions warning on msvc #514

Closed xuhancn closed 5 months ago

xuhancn commented 6 months ago

Warning message on MSVC:

28>D:\xu_github\sleef\src\libm\sleefsimddp.c(28,9): warning C4068: unknown pragma 'STDC'
28>sleefsimdsp.c
28>D:\xu_github\sleef\src\libm\sleefsimdsp.c(28,9): warning C4068: unknown pragma 'STDC'
28>Generating Code...

Fix it by conditional defination for disable fp contractions.

blapie commented 5 months ago

Thank you! Would you mind doing the same modification for sleefsp.c and sleefdp.c? Other occurrences of this pattern are src/libm/sleefinline_header.h.org src/quad/sleefsimdqp.c src/quad/sleefquadinline_header.h.org and src/quad/sleefquadinline_cuda_header.h.org

xuhancn commented 5 months ago

Thank you! Would you mind doing the same modification for sleefsp.c and sleefdp.c? Other occurrences of this pattern are src/libm/sleefinline_header.h.org src/quad/sleefsimdqp.c src/quad/sleefquadinline_header.h.org and src/quad/sleefquadinline_cuda_header.h.org

Done the fixing for above files. Thanks. @blapie