[FFmpeg-devel] libavutil: optimize camellia cipher

supraja reddy supraja0493 at gmail.com
Tue Feb 10 17:01:24 CET 2015


> +    AV_WB64(y,KE);
> > +
> KE=SP[0][y[0]]^SP[1][y[1]]^SP[2][y[2]]^SP[3][y[3]]^SP[4][y[4]]^SP[5][y[5]]^SP[6][y[6]]^SP[7][y[7]];
> > +    return KE;
> have you tried it without the y[] array ?
> storing and loading from memory may (or may not) be slower

I have tried without y[] array. And there seems to be some improvement in
the time.

lavu       CAMELLIA     size: 1048576  runs:   1024  time:   21.549 +- 0.176

I have attached a patch with the respective changes. Would you want me to
convert the F() into a macro ?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: camopt2.patch
Type: text/x-patch
Size: 1103 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150210/9f8ef693/attachment.bin>

More information about the ffmpeg-devel mailing list