Go to the documentation of this file.
43 #if(GLM_ARCH != GLM_ARCH_PURE)
45 #if(GLM_ARCH & GLM_ARCH_SSE2)
46 # include "../detail/intrinsic_common.hpp"
47 # include "../detail/intrinsic_geometric.hpp"
48 # include "../detail/intrinsic_integer.hpp"
50 # error "GLM: GLM_GTX_simd_vec4 requires compiler support of SSE2 through intrinsics"
53 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
54 # pragma message("GLM: GLM_GTX_simd_vec4 extension included")
59 #if (GLM_COMPILER & GLM_COMPILER_VC)
60 # pragma warning(push)
61 # pragma warning(disable:4201) // warning C4201: nonstandard extension used : nameless struct/union
92 typedef __m128 value_type;
93 typedef std::size_t size_type;
94 static size_type value_size();
96 typedef fvec4SIMD
type;
97 typedef tvec4<bool, highp> bool_type;
99 #ifdef GLM_SIMD_ENABLE_XYZW_UNION
103 struct {
float x,
y,
z,
w;};
113 fvec4SIMD(__m128
const & Data);
114 fvec4SIMD(fvec4SIMD
const & v);
134 fvec4SIMD(
vec2 const & v,
float const & s1,
float const & s2);
135 fvec4SIMD(
float const & s1,
vec2 const & v,
float const & s2);
136 fvec4SIMD(
float const & s1,
float const & s2,
vec2 const & v);
137 fvec4SIMD(
vec3 const & v,
float const & s);
138 fvec4SIMD(
float const & s,
vec3 const & v);
139 fvec4SIMD(
vec2 const & v1,
vec2 const & v2);
145 fvec4SIMD& operator= (fvec4SIMD
const & v);
162 template <comp X, comp Y, comp Z, comp W>
163 fvec4SIMD& swizzle();
164 template <comp X, comp Y, comp Z, comp W>
165 fvec4SIMD swizzle()
const;
166 template <comp X, comp Y, comp Z>
167 fvec4SIMD swizzle()
const;
168 template <comp X, comp Y>
169 fvec4SIMD swizzle()
const;
171 fvec4SIMD swizzle()
const;
175 typedef glm::detail::fvec4SIMD simdVec4;
183 detail::fvec4SIMD
const & x);
187 detail::fvec4SIMD
abs(detail::fvec4SIMD
const & x);
191 detail::fvec4SIMD
sign(detail::fvec4SIMD
const & x);
195 detail::fvec4SIMD
floor(detail::fvec4SIMD
const & x);
200 detail::fvec4SIMD
trunc(detail::fvec4SIMD
const & x);
209 detail::fvec4SIMD
round(detail::fvec4SIMD
const & x);
221 detail::fvec4SIMD
ceil(detail::fvec4SIMD
const & x);
226 detail::fvec4SIMD
fract(detail::fvec4SIMD
const & x);
232 detail::fvec4SIMD
mod(
233 detail::fvec4SIMD
const & x,
234 detail::fvec4SIMD
const & y);
240 detail::fvec4SIMD
mod(
241 detail::fvec4SIMD
const & x,
256 detail::fvec4SIMD
min(
257 detail::fvec4SIMD
const & x,
258 detail::fvec4SIMD
const & y);
260 detail::fvec4SIMD
min(
261 detail::fvec4SIMD
const & x,
267 detail::fvec4SIMD
max(
268 detail::fvec4SIMD
const & x,
269 detail::fvec4SIMD
const & y);
271 detail::fvec4SIMD
max(
272 detail::fvec4SIMD
const & x,
279 detail::fvec4SIMD
clamp(
280 detail::fvec4SIMD
const & x,
281 detail::fvec4SIMD
const & minVal,
282 detail::fvec4SIMD
const & maxVal);
284 detail::fvec4SIMD
clamp(
285 detail::fvec4SIMD
const & x,
286 float const & minVal,
287 float const & maxVal);
315 detail::fvec4SIMD
mix(
316 detail::fvec4SIMD
const & x,
317 detail::fvec4SIMD
const & y,
318 detail::fvec4SIMD
const & a);
323 detail::fvec4SIMD
step(
324 detail::fvec4SIMD
const & edge,
325 detail::fvec4SIMD
const & x);
327 detail::fvec4SIMD
step(
329 detail::fvec4SIMD
const & x);
343 detail::fvec4SIMD
const & edge0,
344 detail::fvec4SIMD
const & edge1,
345 detail::fvec4SIMD
const & x);
350 detail::fvec4SIMD
const & x);
389 detail::fvec4SIMD
fma(
390 detail::fvec4SIMD
const & a,
391 detail::fvec4SIMD
const & b,
392 detail::fvec4SIMD
const & c);
419 detail::fvec4SIMD
const & x);
426 detail::fvec4SIMD
const & x);
433 detail::fvec4SIMD
const & x);
438 detail::fvec4SIMD length4(
439 detail::fvec4SIMD
const & x);
445 detail::fvec4SIMD fastLength4(
446 detail::fvec4SIMD
const & x);
452 detail::fvec4SIMD niceLength4(
453 detail::fvec4SIMD
const & x);
459 detail::fvec4SIMD
const & p0,
460 detail::fvec4SIMD
const & p1);
465 detail::fvec4SIMD distance4(
466 detail::fvec4SIMD
const & p0,
467 detail::fvec4SIMD
const & p1);
473 detail::fvec4SIMD
const & x,
474 detail::fvec4SIMD
const & y);
479 detail::fvec4SIMD dot4(
480 detail::fvec4SIMD
const & x,
481 detail::fvec4SIMD
const & y);
486 detail::fvec4SIMD
cross(
487 detail::fvec4SIMD
const & x,
488 detail::fvec4SIMD
const & y);
494 detail::fvec4SIMD
const & x);
501 detail::fvec4SIMD
const & x);
506 detail::fvec4SIMD simdFaceforward(
507 detail::fvec4SIMD
const & N,
508 detail::fvec4SIMD
const & I,
509 detail::fvec4SIMD
const & Nref);
516 detail::fvec4SIMD
const & I,
517 detail::fvec4SIMD
const & N);
525 detail::fvec4SIMD
const & I,
526 detail::fvec4SIMD
const & N,
532 detail::fvec4SIMD
sqrt(
533 detail::fvec4SIMD
const & x);
539 detail::fvec4SIMD niceSqrt(
540 detail::fvec4SIMD
const & x);
547 detail::fvec4SIMD
const & x);
553 detail::fvec4SIMD
const & x);
559 detail::fvec4SIMD fastInversesqrt(
560 detail::fvec4SIMD
const & x);
565 #include "simd_vec4.inl"
567 #if (GLM_COMPILER & GLM_COMPILER_VC)
568 # pragma warning(pop)
571 #endif//(GLM_ARCH != GLM_ARCH_PURE)
GLM_FUNC_DECL genType min(genType const &x, genType const &y)
GLM_FUNC_DECL genType fastSqrt(genType const &x)
GLM_FUNC_DECL genType::value_type length(genType const &x)
GLM_FUNC_DECL genType sign(genType const &x)
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 & operator*=(bfloat16 &a, const bfloat16 &b)
GLM_FUNC_DECL genType normalize(genType const &x)
GLM_FUNC_DECL genType reflect(genType const &I, genType const &N)
#define GLM_ALIGNED_STRUCT(x)
GLM_FUNC_DECL genType::value_type distance(genType const &p0, genType const &p1)
GLM_FUNC_DECL genType floor(genType const &x)
GLM_FUNC_DECL genType round(genType const &x)
GLM_FUNC_DECL vecType< T, P > refract(vecType< T, P > const &I, vecType< T, P > const &N, T const &eta)
GLM_FUNC_DECL genType smoothstep(genType const &edge0, genType const &edge1, genType const &x)
GLM_FUNC_DECL vecType< T, P > sqrt(vecType< T, P > const &x)
GLM_FUNC_DECL genType::value_type fastLength(genType const &x)
GLM_FUNC_DECL genType ceil(genType const &x)
GLM_FUNC_DECL genType max(genType const &x, genType const &y)
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 & operator-=(bfloat16 &a, const bfloat16 &b)
GLM_FUNC_DECL vecType< T, P > mix(vecType< T, P > const &x, vecType< T, P > const &y, vecType< U, P > const &a)
GLM_FUNC_DECL genType step(genType const &edge, genType const &x)
GLM_FUNC_DECL detail::tvec3< T, P > cross(detail::tvec3< T, P > const &x, detail::tvec3< T, P > const &y)
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 operator++(bfloat16 &a)
GLM_FUNC_DECL genType fract(genType const &x)
GLM_FUNC_DECL genType fma(genType const &a, genType const &b, genType const &c)
GLM_FUNC_DECL genType clamp(genType const &x, genType const &minVal, genType const &maxVal)
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 operator--(bfloat16 &a)
GLM_FUNC_DECL genType trunc(genType const &x)
GLM_FUNC_DECL genType abs(genType const &x)
JacobiRotation< float > G
GLM_FUNC_DECL genType inversesqrt(genType const &x)
GLM_FUNC_DECL genType fastNormalize(genType const &x)
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 & operator/=(bfloat16 &a, const bfloat16 &b)
GLM_FUNC_DECL genType mod(genType const &x, genType const &y)
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 & operator+=(bfloat16 &a, const bfloat16 &b)
rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:16