ripemd: move ripemd{256, 320} into separate functions
authorJames Almer <jamrial@gmail.com>
Thu, 7 May 2015 04:58:50 +0000 (01:58 -0300)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 7 May 2015 13:40:56 +0000 (15:40 +0200)
commitaa70801aaf4038faaf673558c241fa19d5dcd181
tree3bed4d473433ed8ed745691fe2b3079d40ed9d32
parentcc77bb09e430428122a8d23159ef49c2ab9a2629
ripemd: move ripemd{256, 320} into separate functions

This allows the removal of a few branches.

Before:
lavu       RIPEMD-160   size: 1048576  runs:   1024  time:    7.052 +- 0.010

After:
lavu       RIPEMD-160   size: 1048576  runs:   1024  time:    6.865 +- 0.015

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/ripemd.c