mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
278 B
16 lines
278 B
1 year ago
|
#include <stdio.h>
|
||
|
#include <lsxintrin.h>
|
||
|
|
||
|
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;
|
||
|
}
|