dqily update on 20230423 by nitload youmu
This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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.
Reference in New Issue
Block a user