| Bullet Collision Detection & Physics Library
    | 
 
 
 
Go to the documentation of this file.
   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 
  
void btSetMax(T &a, const T &b)
const btScalar & y() const
Return the y value.
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
The btQuadWord class is base class for btVector3 and btQuaternion.
void setX(btScalar _x)
Set the x value.
void setZ(btScalar _z)
Set the z value.
void setW(btScalar _w)
Set the w value.
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z)
Set x,y,z and zero w.
const btScalar & getY() const
Return the y value.
const btScalar & w() const
Return the w 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.
const btScalar & getX() const
Return the x value.
void btSetMin(T &a, const T &b)
#define ATTRIBUTE_ALIGNED16(a)
const btScalar & x() const
Return the x value.
#define SIMD_FORCE_INLINE
const btScalar & getZ() const
Return the z value.
bool operator==(const btQuadWord &other) const
void setValue(const btScalar &_x, const btScalar &_y, const btScalar &_z, const btScalar &_w)
Set the values.
bool operator!=(const btQuadWord &other) const
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.
btQuadWord(const btScalar &_x, const btScalar &_y, const btScalar &_z)
Three argument constructor (zeros w)
void setY(btScalar _y)
Set the y value.
btQuadWord()
No initialization constructor.