aboutsummaryrefslogtreecommitdiff
path: root/primedev/core/math/math_pfns.h
blob: 4dca9806d54793d14277dab9652b71b6c16f62b3 (plain)
1
2
3
4
5
6
7
#pragma once

inline float FastSqrt(float x)
{
	__m128 root = _mm_sqrt_ss(_mm_load_ss(&x));
	return *(reinterpret_cast<float*>(&root));
}