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 49 #else //__CELLOS_LV2__ __SPU__ 51 #if defined(BT_USE_SSE) || defined(BT_USE_NEON) 70 #endif //__CELLOS_LV2__ __SPU__ 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);
238 #endif //BT_SIMD_QUADWORD_H const btScalar & x() const
Return the x value.
const btScalar & getZ() const
Return the z value.
void setMin(const btQuadWord &other)
Set each element to the min of the current values and the values of another btQuadWord.
btQuadWord(const btScalar &_x, const btScalar &_y, const btScalar &_z, const btScalar &_w)
Initializing constructor.
#define SIMD_FORCE_INLINE
void setY(btScalar _y)
Set the y value.
btQuadWord()
No initialization constructor.
bool operator==(const btQuadWord &other) const
void btSetMin(T &a, const T &b)
void setX(btScalar _x)
Set the x value.
const btScalar & getY() const
Return the y value.
bool operator!=(const btQuadWord &other) const
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z)
Set x,y,z and zero w.
The btQuadWord class is base class for btVector3 and btQuaternion.
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z, const btScalar &_w)
Set the values.
const btScalar & z() const
Return the z value.
void btSetMax(T &a, const T &b)
#define ATTRIBUTE_ALIGNED16(a)
void setMax(const btQuadWord &other)
Set each element to the max of the current values and the values of another btQuadWord.
btQuadWord(const btScalar &_x, const btScalar &_y, const btScalar &_z)
Three argument constructor (zeros w)
const btScalar & y() const
Return the y value.
const btScalar & getX() const
Return the x value.
void setZ(btScalar _z)
Set the z value.
const btScalar & w() const
Return the w value.
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
void setW(btScalar _w)
Set the w value.