diff options
Diffstat (limited to 'src/lib/libcrypto/x86cpuid.pl')
-rw-r--r-- | src/lib/libcrypto/x86cpuid.pl | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/lib/libcrypto/x86cpuid.pl b/src/lib/libcrypto/x86cpuid.pl index 0da613f697..c7a57a3465 100644 --- a/src/lib/libcrypto/x86cpuid.pl +++ b/src/lib/libcrypto/x86cpuid.pl | |||
@@ -143,17 +143,6 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); } | |||
143 | 143 | ||
144 | &external_label("OPENSSL_ia32cap_P"); | 144 | &external_label("OPENSSL_ia32cap_P"); |
145 | 145 | ||
146 | &function_begin_B("OPENSSL_rdtsc","EXTRN\t_OPENSSL_ia32cap_P:DWORD"); | ||
147 | &xor ("eax","eax"); | ||
148 | &xor ("edx","edx"); | ||
149 | &picmeup("ecx","OPENSSL_ia32cap_P"); | ||
150 | &bt (&DWP(0,"ecx"),4); | ||
151 | &jnc (&label("notsc")); | ||
152 | &rdtsc (); | ||
153 | &set_label("notsc"); | ||
154 | &ret (); | ||
155 | &function_end_B("OPENSSL_rdtsc"); | ||
156 | |||
157 | # This works in Ring 0 only [read DJGPP+MS-DOS+privileged DPMI host], | 146 | # This works in Ring 0 only [read DJGPP+MS-DOS+privileged DPMI host], |
158 | # but it's safe to call it on any [supported] 32-bit platform... | 147 | # but it's safe to call it on any [supported] 32-bit platform... |
159 | # Just check for [non-]zero return value... | 148 | # Just check for [non-]zero return value... |