15#ifndef BT_SIMD_QUADWORD_H
16#define BT_SIMD_QUADWORD_H
21#if defined(__CELLOS_LV2) && defined(__SPU__)
36#if defined(__SPU__) && defined(__CELLOS_LV2__)
43 vec_float4 get128()
const
51#if defined(BT_USE_SSE) || defined(BT_USE_NEON)
73#if (defined(BT_USE_SSE_IN_API) && defined(BT_USE_SSE)) || defined(BT_USE_NEON)
84 mVec128 = rhs.mVec128;
130 return (0xf == _mm_movemask_ps((__m128)_mm_cmpeq_ps(mVec128, other.mVec128)));
141 return !(*
this == other);
210 mVec128 = _mm_max_ps(mVec128, other.mVec128);
211#elif defined(BT_USE_NEON)
212 mVec128 = vmaxq_f32(mVec128, other.mVec128);
226 mVec128 = _mm_min_ps(mVec128, other.mVec128);
227#elif defined(BT_USE_NEON)
228 mVec128 = vminq_f32(mVec128, other.mVec128);
void btSetMin(T &a, const T &b)
void btSetMax(T &a, const T &b)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
#define ATTRIBUTE_ALIGNED16(a)
#define SIMD_FORCE_INLINE
The btQuadWord class is base class for btVector3 and btQuaternion.
btQuadWord(const btScalar &_x, const btScalar &_y, const btScalar &_z)
Three argument constructor (zeros w)
const btScalar & w() const
Return the w value.
const btScalar & getY() const
Return the y value.
void setZ(btScalar _z)
Set the z value.
const btScalar & getX() const
Return the x value.
btQuadWord(const btScalar &_x, const btScalar &_y, const btScalar &_z, const btScalar &_w)
Initializing constructor.
void setW(btScalar _w)
Set the w value.
const btScalar & getZ() const
Return the z value.
void setMax(const btQuadWord &other)
Set each element to the max of the current values and the values of another btQuadWord.
const btScalar & z() const
Return the z value.
const btScalar & y() const
Return the y value.
void setMin(const btQuadWord &other)
Set each element to the min of the current values and the values of another btQuadWord.
bool operator==(const btQuadWord &other) const
void setY(btScalar _y)
Set the y value.
void setX(btScalar _x)
Set the x value.
btQuadWord()
No initialization constructor.
bool operator!=(const btQuadWord &other) const
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z, const btScalar &_w)
Set the values.
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z)
Set x,y,z and zero w.
const btScalar & x() const
Return the x value.