Skip to content

Commit a0b15b7

Browse files
committed
block op<< dep
1 parent ebe4997 commit a0b15b7

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

cryptoTools/Common/block.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ namespace osuCrypto
350350
#endif
351351
}
352352

353-
OC_CUDA_CALLABLE OC_FORCEINLINE block operator>>(const std::uint8_t& rhs)const
353+
354+
OC_CUDA_CALLABLE OC_FORCEINLINE block srli_epi64(const std::uint8_t& rhs)const
354355
{
355356
#ifdef OC_ENABLE_SSE2
356357
return mm_srli_epi64(rhs);
@@ -359,6 +360,14 @@ namespace osuCrypto
359360
#endif
360361
}
361362

363+
364+
[[deprecated("use srli_epi64 instead")]]
365+
OC_CUDA_CALLABLE OC_FORCEINLINE block operator>>(const std::uint8_t& rhs)const
366+
{
367+
return srli_epi64(rhs);
368+
}
369+
370+
[[deprecated("use srli_epi64 instead")]]
362371
OC_CUDA_CALLABLE OC_FORCEINLINE osuCrypto::block& operator>>=(const std::uint8_t& rhs)
363372
{
364373
*this = *this >> rhs;

0 commit comments

Comments
 (0)