Commit 00a0419c authored by Diego Biurrun's avatar Diego Biurrun

mathematics: Kill non-compiling disabled cruft

parent 5a667322
...@@ -58,7 +58,6 @@ int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd) ...@@ -58,7 +58,6 @@ int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd)
else else
return a / c * b + (a % c * b + r) / c; return a / c * b + (a % c * b + r) / c;
} else { } else {
#if 1
uint64_t a0 = a & 0xFFFFFFFF; uint64_t a0 = a & 0xFFFFFFFF;
uint64_t a1 = a >> 32; uint64_t a1 = a >> 32;
uint64_t b0 = b & 0xFFFFFFFF; uint64_t b0 = b & 0xFFFFFFFF;
...@@ -82,14 +81,6 @@ int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd) ...@@ -82,14 +81,6 @@ int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd)
} }
return t1; return t1;
} }
#else
AVInteger ai;
ai = av_mul_i(av_int2i(a), av_int2i(b));
ai = av_add_i(ai, av_int2i(r));
return av_i2int(av_div_i(ai, av_int2i(c)));
}
#endif
} }
int64_t av_rescale(int64_t a, int64_t b, int64_t c) int64_t av_rescale(int64_t a, int64_t b, int64_t c)
......
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