ia64cpuid.S: OPENSSL_cleanse to accept zero length parameter.

This commit is contained in:
Andy Polyakov 2010-01-24 17:08:52 +00:00
parent bc120a54c9
commit 3f2a98acbf

View File

@ -130,9 +130,11 @@ OPENSSL_wipe_cpu:
.global OPENSSL_cleanse# .global OPENSSL_cleanse#
.proc OPENSSL_cleanse# .proc OPENSSL_cleanse#
OPENSSL_cleanse: OPENSSL_cleanse:
{ .mib; cmp.eq p6,p0=0,r33 // len==0
#if defined(_HPUX_SOURCE) && !defined(_LP64) #if defined(_HPUX_SOURCE) && !defined(_LP64)
{ .mmi; addp4 r32=0,r32 };; addp4 r32=0,r32
#endif #endif
(p6) br.ret.spnt b0 };;
{ .mib; and r2=7,r32 { .mib; and r2=7,r32
cmp.leu p6,p0=15,r33 // len>=15 cmp.leu p6,p0=15,r33 // len>=15
(p6) br.cond.dptk .Lot };; (p6) br.cond.dptk .Lot };;