Closed maxint closed 4 years ago
Hi there. Have you checked the header with removed "static" usage with include in multiple files of the same project? It doesn't work with the compilers I have for sure.
Hi Zvictoria, It's OK to include the new header in multiple c++ source files in one library. Maybe I should check the c case.
Could you check C case please? It looks strange to me - compiler should see multiple functions re-definitions and complain about it.
I try to include the header in two c sources, compiler reported errors like this:
NEON_2_SSE.h: In function ‘vsetq_lane_u16’:
NEON_2_SSE.h:2294:29: error: selector must be an integer constant in the range 0..7
# define _MM_INSERT_EPI16 _mm_insert_epi16
^
NEON_2_SSE.h:9406:40: note: in expansion of macro ‘_MM_INSERT_EPI16’
#define vld1q_lane_u16(ptr, vec, lane) _MM_INSERT_EPI16(vec, *(ptr), lane)
Then I revert the changes, it reported warnings in C++ sources 😭 :
NEON_2_SSE.h:16172:29: warning: ‘vreinterpretq_p16_s32’ declared ‘static’ but never defined [-Wunused-function]
_NEON2SSESTORAGE poly16x8_t vreinterpretq_p16_s32 (int32x4_t t);
Close the pull request temporarily.
Fix many compiler warnings like following in gcc 5.4.0.
These warnings could not be disabled simply by
pragma GCC diagnostic
commands .