summaryrefslogtreecommitdiffstats
path: root/mac-x86_64/crypto/rand/rdrand-x86_64.S
diff options
context:
space:
mode:
Diffstat (limited to 'mac-x86_64/crypto/rand/rdrand-x86_64.S')
-rw-r--r--mac-x86_64/crypto/rand/rdrand-x86_64.S39
1 files changed, 1 insertions, 38 deletions
diff --git a/mac-x86_64/crypto/rand/rdrand-x86_64.S b/mac-x86_64/crypto/rand/rdrand-x86_64.S
index f0df296..1ba990f 100644
--- a/mac-x86_64/crypto/rand/rdrand-x86_64.S
+++ b/mac-x86_64/crypto/rand/rdrand-x86_64.S
@@ -1,48 +1,11 @@
#if defined(__x86_64__)
.text
-
-
-
.globl _CRYPTO_rdrand
.private_extern _CRYPTO_rdrand
.p2align 4
_CRYPTO_rdrand:
- xorq %rax,%rax
-
-
-.byte 0x48, 0x0f, 0xc7, 0xf1
-
- adcq %rax,%rax
- movq %rcx,0(%rdi)
- .byte 0xf3,0xc3
-
-
-
-
-
-.globl _CRYPTO_rdrand_multiple8_buf
-.private_extern _CRYPTO_rdrand_multiple8_buf
-
-.p2align 4
-_CRYPTO_rdrand_multiple8_buf:
- testq %rsi,%rsi
- jz L$out
- movq $8,%rdx
-L$loop:
-
-
-.byte 0x48, 0x0f, 0xc7, 0xf1
- jnc L$err
- movq %rcx,0(%rdi)
- addq %rdx,%rdi
- subq %rdx,%rsi
- jnz L$loop
-L$out:
- movq $1,%rax
- .byte 0xf3,0xc3
-L$err:
- xorq %rax,%rax
+.byte 0x48, 0x0f, 0xc7, 0xf0
.byte 0xf3,0xc3
#endif