18 lines
229 B
C
18 lines
229 B
C
#include <stdio.h>
|
|
#include <xmmintrin.h>
|
|
|
|
__m128 sqrtss(float m)
|
|
{
|
|
__m128 mCache= {
|
|
.m128_f32[0]=m
|
|
};
|
|
return _mm_sqrt_ss(mCache);
|
|
}
|
|
|
|
|
|
void main()
|
|
{
|
|
float m = 25.0f;
|
|
scanf_s("%f",&m);
|
|
printf("%f",sqrtss(m).m128_f32[0]);
|
|
} |