mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
load pointer to rdx directly
This commit is contained in:
parent
6ba472eee7
commit
58a5c0f542
10
aes.cpp
10
aes.cpp
@ -76,7 +76,6 @@ namespace crypto
|
||||
{
|
||||
__asm__
|
||||
(
|
||||
"movq %0, %%rdx \n"
|
||||
"movups (%%rsi), %%xmm0 \n"
|
||||
"pxor (%%rdx), %%xmm0 \n"
|
||||
"aesenc 16(%%rdx), %%xmm0 \n"
|
||||
@ -93,9 +92,7 @@ namespace crypto
|
||||
"aesenc 208(%%rdx), %%xmm0 \n"
|
||||
"aesenclast 224(%%rdx), %%xmm0 \n"
|
||||
"movups %%xmm0, (%%rdi) \n"
|
||||
:
|
||||
: "r" ((uint64_t)m_KeySchedule), "S" (in), "D" (out)
|
||||
: "%rdx"
|
||||
: : "d" ((uint64_t)m_KeySchedule), "S" (in), "D" (out)
|
||||
);
|
||||
}
|
||||
|
||||
@ -103,7 +100,6 @@ namespace crypto
|
||||
{
|
||||
__asm__
|
||||
(
|
||||
"movq %0, %%rdx \n"
|
||||
"movups (%%rsi), %%xmm0 \n"
|
||||
"pxor 224(%%rdx), %%xmm0 \n"
|
||||
"aesdec 208(%%rdx), %%xmm0 \n"
|
||||
@ -120,9 +116,7 @@ namespace crypto
|
||||
"aesdec 16(%%rdx), %%xmm0 \n"
|
||||
"aesdeclast (%%rdx), %%xmm0 \n"
|
||||
"movups %%xmm0, (%%rdi) \n"
|
||||
:
|
||||
: "r" ((uint64_t)m_KeySchedule), "S" (in), "D" (out)
|
||||
: "%rdx"
|
||||
: : "d" ((uint64_t)m_KeySchedule), "S" (in), "D" (out)
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user