Download cmake/checks/cpu_lasx.cpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 434 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/cmake/checks/cpu_lasx.cpp
- Command line
-
hf download hf://tgollogly/test/cmake/checks/cpu_lasx.cpp
-
curl -L -o cpu_lasx.cpp https://huggingface.co/tgollogly/test/resolve/main/cmake/checks/cpu_lasx.cpp
434 Bytes
| int test() | |
| { | |
| const float src[] = { 0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f }; | |
| v8f32 val = (v8f32)__lasx_xvld((const float*)(src), 0); | |
| return __lasx_xvpickve2gr_w(__lasx_xvftint_w_s (val), 7); | |
| } | |
| int main() | |
| { | |
| printf("%d\n", test()); | |
| return 0; | |
| } | |