Remove unneeded enum from VectorShiftLeftVectorShiftRight
parent
00e7d02a8a
commit
0464641069
16
ppc-simd.h
16
ppc-simd.h
|
|
@ -169,13 +169,13 @@ template <unsigned int C, class T>
|
|||
inline T VectorShiftLeft(const T& vec)
|
||||
{
|
||||
#if CRYPTOPP_BIG_ENDIAN
|
||||
enum { R=(C)&0xf, S=R };
|
||||
enum { R=(C)&0xf };
|
||||
const T zero = {0};
|
||||
return (T)vec_sld((uint8x16_p)vec, (uint8x16_p)zero, S);
|
||||
return (T)vec_sld((uint8x16_p)vec, (uint8x16_p)zero, R);
|
||||
#else
|
||||
enum { R=(16-C)&0xf, S=R };
|
||||
enum { R=(16-C)&0xf };
|
||||
const T zero = {0};
|
||||
return (T)vec_sld((uint8x16_p)zero, (uint8x16_p)vec, S);
|
||||
return (T)vec_sld((uint8x16_p)zero, (uint8x16_p)vec, R);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -225,13 +225,13 @@ template <unsigned int C, class T>
|
|||
inline T VectorShiftRight(const T& vec)
|
||||
{
|
||||
#if CRYPTOPP_BIG_ENDIAN
|
||||
enum { R=(16-C)&0xf, S=R };
|
||||
enum { R=(16-C)&0xf };
|
||||
const T zero = {0};
|
||||
return (T)vec_sld((uint8x16_p)zero, (uint8x16_p)vec, S);
|
||||
return (T)vec_sld((uint8x16_p)zero, (uint8x16_p)vec, R);
|
||||
#else
|
||||
enum { R=(C)&0xf, S=R };
|
||||
enum { R=(C)&0xf };
|
||||
const T zero = {0};
|
||||
return (T)vec_sld((uint8x16_p)vec, (uint8x16_p)zero, S);
|
||||
return (T)vec_sld((uint8x16_p)vec, (uint8x16_p)zero, R);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue