Skip to content

Commit

Permalink
Fix build errors on MSVC for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenegff committed Aug 22, 2024
1 parent d4157c9 commit 77d3e2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OgreMain/include/Math/Array/NEON/Single/OgreMathlibNEON.h
Original file line number Diff line number Diff line change
Expand Up @@ -727,17 +727,17 @@ namespace Ogre
# if OGRE_COMPILER != OGRE_COMPILER_CLANG && OGRE_COMPILER != OGRE_COMPILER_GNUC
// clang-format off
inline ArrayReal operator - ( ArrayReal l ) { return vnegq_f32( l ); }
// inline ArrayReal operator + ( ArrayReal l, Real r ) { return vaddq_f32( l, vdupq_n_f32( r ) ); }
inline ArrayReal operator + ( ArrayReal l, Real r ) { return vaddq_f32( l, vdupq_n_f32( r ) ); }
// inline ArrayReal operator + ( Real l, ArrayReal r ) { return vaddq_f32( vdupq_n_f32( l ), r ); }
inline ArrayReal operator + ( ArrayReal l, ArrayReal r ) { return vaddq_f32( l, r ); }
// inline ArrayReal operator - ( ArrayReal l, Real r ) { return vsubq_f32( l, vdupq_n_f32( r ) ); }
// inline ArrayReal operator - ( Real l, ArrayReal r ) { return vsubq_f32( vdupq_n_f32( l ), r ); }
inline ArrayReal operator - ( ArrayReal l, ArrayReal r ) { return vsubq_f32( l, r ); }
// inline ArrayReal operator * ( ArrayReal l, Real r ) { return vmulq_f32( l, vdupq_n_f32( r ) ); }
// inline ArrayReal operator * ( Real l, ArrayReal r ) { return vmulq_f32( vdupq_n_f32( l ), r ); }
inline ArrayReal operator * ( Real l, ArrayReal r ) { return vmulq_f32( vdupq_n_f32( l ), r ); }
inline ArrayReal operator * ( ArrayReal l, ArrayReal r ) { return vmulq_f32( l, r ); }
// inline ArrayReal operator / ( ArrayReal l, Real r ) { return _mm_div_ps( l, vdupq_n_f32( r ) ); }
// inline ArrayReal operator / ( Real l, ArrayReal r ) { return _mm_div_ps( vdupq_n_f32( l ), r ); }
inline ArrayReal operator / ( ArrayReal l, Real r ) { return vdivq_f32( l, vdupq_n_f32( r ) ); }
// inline ArrayReal operator / ( Real l, ArrayReal r ) { return vdivq_f32( vdupq_n_f32( l ), r ); }
inline ArrayReal operator / ( ArrayReal l, ArrayReal r ) { return vdivq_f32( l, r ); }
// clang-format on
# endif
Expand Down

0 comments on commit 77d3e2e

Please sign in to comment.