summaryrefslogtreecommitdiff
path: root/libavcodec/faandct.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-03-19 16:00:21 +0100
committerClément Bœsch <u@pkh.me>2017-03-19 16:00:21 +0100
commit7a6514861ecf26fe7f892ddc494c063c5d093023 (patch)
treee3c4fb083b012188146ff12c8e1342d78b1dfe02 /libavcodec/faandct.c
parent83706367e2b5693e093954997b19af5031b8e2ff (diff)
parent34c22a9ca656603428b2c3490d1339c5a5966961 (diff)
downloadffmpeg-7a6514861ecf26fe7f892ddc494c063c5d093023.tar.gz
Merge commit '34c22a9ca656603428b2c3490d1339c5a5966961'
* commit '34c22a9ca656603428b2c3490d1339c5a5966961': faan(i)dct: Kill some disabled code Merged-by: Clément Bœsch <u@pkh.me>
Diffstat (limited to 'libavcodec/faandct.c')
-rw-r--r--libavcodec/faandct.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/libavcodec/faandct.c b/libavcodec/faandct.c
index b6830725d2..38c392bbae 100644
--- a/libavcodec/faandct.c
+++ b/libavcodec/faandct.c
@@ -96,17 +96,9 @@ static av_always_inline void row_fdct(FLOAT temp[64], int16_t *data)
tmp5 += tmp6;
tmp6 += tmp7;
-#if 0
- {
- FLOAT z5;
- z5 = (tmp4 - tmp6) * A5;
- z2 = tmp4 * A2 + z5;
- z4 = tmp6 * A4 + z5;
- }
-#else
z2= tmp4*(A2+A5) - tmp6*A5;
z4= tmp6*(A4-A5) + tmp4*A5;
-#endif
+
tmp5*=A1;
z11= tmp7 + tmp5;
@@ -158,17 +150,9 @@ void ff_faandct(int16_t *data)
tmp5 += tmp6;
tmp6 += tmp7;
-#if 0
- {
- FLOAT z5;
- z5 = (tmp4 - tmp6) * A5;
- z2 = tmp4 * A2 + z5;
- z4 = tmp6 * A4 + z5;
- }
-#else
z2= tmp4*(A2+A5) - tmp6*A5;
z4= tmp6*(A4-A5) + tmp4*A5;
-#endif
+
tmp5*=A1;
z11= tmp7 + tmp5;