dqily update on 20230423 by nitload youmu

This commit is contained in:
Nitload
2023-04-23 00:25:51 +08:00
parent 1cb78e9e8f
commit 7dba067146
45 changed files with 4698 additions and 43 deletions
Binary file not shown.
Binary file not shown.
+10 -17
View File
@@ -17,8 +17,16 @@ void main()
float a = 400.0f;
a = sseSqrt(a);
printf("%f",a);
/**/
}
float sseSqrt(float x)
{
float r[4];
float* pa = &a;
float* pa = &x;
__m128 b;
__m128 c;
@@ -27,21 +35,6 @@ void main()
c = _mm_sqrt_ss(b);
_mm_store_ss(r, c);
printf("%f", r[0]);
/**/
}
/*
float sseSqrt(float x)
{
float* a = &x;
float result[4];
__m128 b = _mm_load_ss(a);
__m128 c = _mm_sqrt_ss(b);
_mm_store_ss(result, c);
return result[0];
return r[0];
}
/**/
Binary file not shown.
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.