Download cmake/checks/cpu_neon.cpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 708 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/cmake/checks/cpu_neon.cpp
- Command line
-
hf download hf://tgollogly/test/cmake/checks/cpu_neon.cpp
-
curl -L -o cpu_neon.cpp https://huggingface.co/tgollogly/test/resolve/main/cmake/checks/cpu_neon.cpp
708 Bytes
| // MSVC 2019 bug. Details: https://github.com/opencv/opencv/pull/16027 | |
| void test_aliased_type(const uint8x16_t& a) { } | |
| void test_aliased_type(const int8x16_t& a) { } | |
| int test() | |
| { | |
| const float src[] = { 0.0f, 0.0f, 0.0f, 0.0f }; | |
| float32x4_t val = vld1q_f32((const float32_t*)(src)); | |
| return (int)vgetq_lane_f32(val, 0); | |
| } | |
| int main() | |
| { | |
| printf("%d\n", test()); | |
| return 0; | |
| } | |