mirror of
https://github.com/openssl/openssl.git
synced 2024-12-09 05:51:54 +08:00
14e21f863a
is to have a placeholder to small routines, which can be written only in assembler. In IA-32 case this includes processor capability identification and access to Time-Stamp Counter. As discussed earlier OPENSSL_ia32cap is introduced to control recently added SSE2 code pathes (see docs/crypto/OPENSSL_ia32cap.pod). For the moment the code is operational on ELF platforms only. I haven't checked it yet, but I have all reasons to believe that Windows build should fail to link too. I'll be looking into it shortly...
10 lines
206 B
ArmAsm
10 lines
206 B
ArmAsm
// Works on all IA-64 platforms: Linux, HP-UX, Win64i...
|
|
// On Win64i compile with ias.exe.
|
|
.text
|
|
.global OPENSSL_rdtsc#
|
|
.proc OPENSSL_rdtsc#
|
|
OPENSSL_rdtsc:
|
|
mov r8=ar.itc
|
|
br.ret b0
|
|
.endp OPENSSL_rdtsc#
|