Advertisement
coder0xff

Intrinsic optimizations

Jul 25th, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. Point2& Point2::operator +=(Vector2 const &rhs) {
  2. #if ARM_NEON
  3. *(float32x2_t*)this = vadd_f32(*(float32x2_t*)this, *(float32x2_t*)&rhs);
  4. return *this;
  5. #else
  6. return *this = *this + rhs;
  7. #endif
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement