disable Panama SSE2 code for P4

pull/2/head
weidai 2009-04-05 20:01:05 +00:00
parent 5b809d7931
commit 21e2d55f9d
1 changed files with 1 additions and 1 deletions

View File

@ -463,7 +463,7 @@ void PanamaCipherPolicy<B>::CipherResynchronize(byte *keystreamBuffer, const byt
} }
#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE) #if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE)
if (B::ToEnum() == LITTLE_ENDIAN_ORDER && HasSSE2()) if (B::ToEnum() == LITTLE_ENDIAN_ORDER && HasSSE2() && !IsP4()) // SSE2 code is slower on P4 Prescott
Panama_SSE2_Pull(32, this->m_state, NULL, NULL); Panama_SSE2_Pull(32, this->m_state, NULL, NULL);
else else
#endif #endif