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