Commit d55ae8a4 authored by mru's avatar mru

DCA: use FASTDIV in decode_blockcode()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22855 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b373d235
......@@ -30,6 +30,7 @@
#include <stddef.h>
#include <stdio.h>
#include "libavutil/intmath.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "dsputil.h"
......@@ -907,8 +908,9 @@ static int decode_blockcode(int code, int levels, int *values)
int offset = (levels - 1) >> 1;
for (i = 0; i < 4; i++) {
values[i] = (code % levels) - offset;
code /= levels;
int div = FASTDIV(code, levels);
values[i] = code - offset - div*levels;
code = div;
}
if (code == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment