summaryrefslogtreecommitdiff
path: root/libavutil/tx_priv.h
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2020-02-14 19:55:00 +0000
committerLynne <dev@lynne.ee>2020-02-14 19:58:14 +0000
commite1c84856bb7d804e74904ba117a2ca9700211082 (patch)
tree3f80b6016a14b48b0d1ae9d097a532d23044c268 /libavutil/tx_priv.h
parent34a6a36844887580f0dcc5badd640bae837b217b (diff)
lavu/tx: improve 3-point fixed precision
There's just no reason not to when its so easy (albeit messy) and its also reducing the precision of all non-power-of-two transforms that use it.
Diffstat (limited to 'libavutil/tx_priv.h')
-rw-r--r--libavutil/tx_priv.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavutil/tx_priv.h b/libavutil/tx_priv.h
index 6fabea2d4d..e0d980abfb 100644
--- a/libavutil/tx_priv.h
+++ b/libavutil/tx_priv.h
@@ -47,8 +47,6 @@ typedef void FFTComplex;
#if defined(TX_FLOAT) || defined(TX_DOUBLE)
-#define MUL(x, y) ((x)*(y))
-
#define CMUL(dre, dim, are, aim, bre, bim) do { \
(dre) = (are) * (bre) - (aim) * (bim); \
(dim) = (are) * (bim) + (aim) * (bre); \
@@ -65,8 +63,6 @@ typedef void FFTComplex;
#elif defined(TX_INT32)
-#define MUL(x, y) ((int32_t)(((int64_t)(x) * (int64_t)(y) + 0x40000000) >> 31))
-
/* Properly rounds the result */
#define CMUL(dre, dim, are, aim, bre, bim) do { \
int64_t accu; \