/* Evaluate a*b/400 rounded to the nearest integer. When, for example, a*b == 200 and the nearest integer is ill-defined, use a table to emulate the following broken float-based implementation used by the binary decoder: */
static int very_broken_op(int a, int b)
/* Evaluate a*b/400 rounded to the nearest integer. When, for example, a*b == 200 and the nearest integer is ill-defined, use a table to emulate the following broken float-based implementation used by the binary decoder: */
static int very_broken_op(int a, int b)
{
    int x = a*b + 200;
    int size;
    const uint8_t *rtab;
    if (x%400 || b%5)
        return x/400;
    x /= 400;
    size = tabs[b/5].size;
    rtab = tabs[b/5].tab;
    return x - rtab[size*av_log2(2*(x - 1)/size)+(x - 1)%size];
}