• Andrew Morton's avatar
    [CRYPTO]: aes-586-asm: small optimizations · 7515caf1
    Andrew Morton authored
    From: Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua>
    
    - 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.
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    7515caf1
aes-i586-asm.S 10.6 KB