Download cmake/checks/cpu_lsx.cpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 278 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/cmake/checks/cpu_lsx.cpp
- Command line
-
hf download hf://tgollogly/test/cmake/checks/cpu_lsx.cpp
-
curl -L -o cpu_lsx.cpp https://huggingface.co/tgollogly/test/resolve/main/cmake/checks/cpu_lsx.cpp
278 Bytes
| int test() | |
| { | |
| const float src[] = { 0.0f, 1.0f, 2.0f, 3.0f}; | |
| v4f32 val = (v4f32)__lsx_vld((const float*)(src), 0); | |
| return __lsx_vpickve2gr_w(__lsx_vftint_w_s(val), 3); | |
| } | |
| int main() | |
| { | |
| printf("%d\n", test()); | |
| return 0; | |
| } | |