daily update on 20230804 by nitload youmu

This commit is contained in:
Nitload
2023-08-04 22:51:24 +08:00
parent aae7e0292c
commit b3785e35af
55 changed files with 1363 additions and 791 deletions
Binary file not shown.
Binary file not shown.
+10 -7
View File
@@ -4,21 +4,24 @@
#include <stdio.h>
#include <stdint.h>
#include <xmmintrin.h>
#include <pmmintrin.h>
__m128 __cdecl addps(__m128* ptr1, __m128* ptr2);
int main()
{
float c[4] = { 1,2,3,4 };
float c[4] = { 1,10,100,1000 };
float c1[4] = { 1,2,3,4 };
__m128 m = _mm_loadu_ps(&c);
__m128 m1 = _mm_loadu_ps(&c1);
__m128 m3 = addps(&m,&m1);
__m128 m1 = _mm_hadd_ps(m,m);
m1 = _mm_hadd_ps(m1,m1);
m1 = m;
m1 = _mm_shuffle_ps(m,m,0b01101100);
printf("%f\t%f\t%f\t%f\t\n",
m3.m128_f32[0], m3.m128_f32[1], m3.m128_f32[2], m3.m128_f32[3]);
m1.m128_f32[0], m1.m128_f32[1], m1.m128_f32[2], m1.m128_f32[3]
);
}
__m128 addps(__m128* ptr1, __m128* ptr2)
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.