2004-10-03 11:49:33

by Denis Vlasenko

[permalink] [raw]
Subject: [PATCH 1/2] aes-586-asm: formatting changes

Against 2.6.9-rc3

Macro parameters renamed for clarity.
Inaccurate comments fixed.
ebp register usage de-obfuscated (this is needed for
next patch).

No real code changes.
--
vda


Attachments:
(No filename) (180.00 B)
aes-i586.1.form.patch (10.27 kB)
Download all attachments

2004-10-03 11:54:39

by Denis Vlasenko

[permalink] [raw]
Subject: [PATCH 2/2] aes-586-asm: small optimizations

On Sunday 03 October 2004 14:47, Denis Vlasenko wrote:
> ebp register usage de-obfuscated (this is needed for
> next patch).

* recode back-to-back fwd_rnd() pairs to avoid two register moves.
* ditto for inv_rnd().
* optimize out lea 0(%ebp),%ebp
* remove two stray insns

# size aes-i586-asm.o.org aes-i586-asm.o
text data bss dec hex filename
5971 0 0 5971 1753 aes-i586-asm.o.org
5905 0 0 5905 1711 aes-i586-asm.o

Overall, patch does not add and does not modify any insns,
only removes a handful of them. However, speed difference
is way below noise level.

Run-tested with tcrypt module.
--
vda


Attachments:
(No filename) (661.00 B)
aes-i586.2.opt.patch (7.94 kB)
Download all attachments