vec: more strongly hint on generating fsrra instructions
This commit is contained in:
parent
9585f66637
commit
e691956223
@ -18,7 +18,8 @@ inline constexpr T magnitude_squared(vec<L, T> const& v)
|
||||
template <int L, typename T>
|
||||
inline constexpr vec<3, T> normalize(vec<L, T> const& v)
|
||||
{
|
||||
return v / magnitude(v);
|
||||
T d = 1.0f / magnitude(v);
|
||||
return v * d;
|
||||
}
|
||||
|
||||
template <int L, typename T>
|
||||
|
Loading…
x
Reference in New Issue
Block a user