Skip to content

Commit

Permalink
Remove deprecated 'register' keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Apr 10, 2021
1 parent e72c5a1 commit 32ba36e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ namespace Ogre
dst3 = tmp1.val[3]; \
}

register ArrayReal m0, m1, m2, m3;
ArrayReal m0, m1, m2, m3;

_MM_TRANSPOSE4_SRC_DST_PS(
this->mChunkBase[0], this->mChunkBase[1],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ namespace Ogre
dst2 = tmp1.val[2]; \
dst3 = tmp1.val[3]; \
}
register ArrayReal m0, m1, m2, m3;
ArrayReal m0, m1, m2, m3;

_MM_TRANSPOSE4_SRC_DST_PS(
this->mChunkBase[0], this->mChunkBase[1],
Expand Down Expand Up @@ -597,7 +597,7 @@ namespace Ogre
//-----------------------------------------------------------------------------------
inline void ArrayMatrixAf4x3::streamToAoS( SimpleMatrixAf4x3 * RESTRICT_ALIAS _dst ) const
{
register ArrayReal dst0, dst1, dst2, dst3;
ArrayReal dst0, dst1, dst2, dst3;
Real *dst = reinterpret_cast<Real*>( _dst );

_MM_TRANSPOSE4_SRC_DST_PS(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ namespace Ogre
(dst2) = _mm_shuffle_ps(tmp2, tmp3, 0x88); \
(dst3) = _mm_shuffle_ps(tmp2, tmp3, 0xDD); \
}
register ArrayReal m0, m1, m2, m3;
ArrayReal m0, m1, m2, m3;

_MM_TRANSPOSE4_SRC_DST_PS(
this->mChunkBase[0], this->mChunkBase[1],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ namespace Ogre
(dst2) = _mm_shuffle_ps(tmp2, tmp3, 0x88); \
(dst3) = _mm_shuffle_ps(tmp2, tmp3, 0xDD); \
}
register ArrayReal m0, m1, m2, m3;
ArrayReal m0, m1, m2, m3;

_MM_TRANSPOSE4_SRC_DST_PS(
this->mChunkBase[0], this->mChunkBase[1],
Expand Down Expand Up @@ -604,7 +604,7 @@ namespace Ogre
//-----------------------------------------------------------------------------------
inline void ArrayMatrixAf4x3::streamToAoS( SimpleMatrixAf4x3 * RESTRICT_ALIAS _dst ) const
{
register __m128 dst0, dst1, dst2, dst3;
__m128 dst0, dst1, dst2, dst3;
Real *dst = reinterpret_cast<Real*>( _dst );

_MM_TRANSPOSE4_SRC_DST_PS(
Expand Down
2 changes: 1 addition & 1 deletion OgreMain/include/OgreMemorySTLAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ namespace Ogre
{
(void)ptr;
// convert request to bytes
register size_type sz = count*sizeof( T );
size_type sz = count*sizeof( T );
pointer p = static_cast<pointer>(AllocPolicy::allocateBytes(sz));
return p;
}
Expand Down

0 comments on commit 32ba36e

Please sign in to comment.