Return smaller of ret and f.

PR#3418.
apps/speed.c: add multi-block benchmark.
s3_pkt.c: fix typo.
sha512-x86_64.pl: fix typo.

PR: #3431