diff options
author | Andy Polyakov <appro@openssl.org> | 2007-05-14 21:35:25 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2007-05-14 21:35:25 +0000 |
commit | b2dba9bf1f8f73376b9c1f0904a86996c728b236 (patch) | |
tree | 8848a4f5efdf02d841b1ebea4969d879d6e61eb5 /Configure | |
parent | 932cc129ee61f5b72636eee6a7c3268e23967f7b (diff) |
Profiling revealed that OPENSSL_cleanse consumes *more* CPU time than
sha1_block_data_order when hashing short messages. Move OPENSSL_cleanse
to "cpuid" assembler module and gain 2x.
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1209,6 +1209,7 @@ $cflags.=" -DOPENSSL_IA32_SSE2" if (!$no_sse2 && $bn_obj =~ /bn86/); $cflags.=" -DOPENSSL_BN_ASM_MONT" if ($bn_obj =~ /\-mont|mo86\-/); +$cpuid_obj="mem_clr.o" unless ($cpuid_obj =~ /\.o$/); $des_obj=$des_enc unless ($des_obj =~ /\.o$/); $bf_obj=$bf_enc unless ($bf_obj =~ /\.o$/); $cast_obj=$cast_enc unless ($cast_obj =~ /\.o$/); @@ -1481,7 +1482,7 @@ print OUT "#ifdef OPENSSL_ALGORITHM_DEFINES\n"; print OUT $openssl_algorithm_defines_trans; print OUT "#endif\n\n"; -print OUT "#define OPENSSL_CPUID_OBJ\n\n" if ($cpuid_obj); +print OUT "#define OPENSSL_CPUID_OBJ\n\n" if ($cpuid_obj ne "mem_clr.o"); while (<IN>) { |