summaryrefslogtreecommitdiffstats
path: root/mp3lib/dct36_k7.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-06-22 03:32:16 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-06-22 03:32:16 +0000
commitd0cf347a6269992b0d52d4863c02be91730b1c78 (patch)
tree9b9a9454a2cbc3b6465bd200ab9b3f3fe5663d0c /mp3lib/dct36_k7.c
parent0865846ecb7a6b4e5fbf5127d355892d2ff53d9c (diff)
downloadmpv-d0cf347a6269992b0d52d4863c02be91730b1c78.tar.bz2
mpv-d0cf347a6269992b0d52d4863c02be91730b1c78.tar.xz
moved 3dnow and 3dnowex dct36 optimisations into gcc inline assembly
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10323 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib/dct36_k7.c')
-rw-r--r--mp3lib/dct36_k7.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/mp3lib/dct36_k7.c b/mp3lib/dct36_k7.c
new file mode 100644
index 0000000000..c1f19e7c28
--- /dev/null
+++ b/mp3lib/dct36_k7.c
@@ -0,0 +1,34 @@
+/*
+ * dct36_k7.c - 3DNowEx(DSP)! optimized dct36()
+ *
+ * This code based 'dct36_3dnow.s' by Syuuhei Kashiyama
+ * <squash@mb.kcom.ne.jp>, only two types of changes have been made:
+ *
+ * - added new opcode PSWAPD
+ * - removed PREFETCH instruction for speedup
+ * - changed function name for support 3DNowEx! automatic detection
+ *
+ * note: because K7 processors are an aggresive out-of-order three-way
+ * superscalar ones instruction order is not significand for them.
+ *
+ * You can find Kashiyama's original 3dnow! support patch
+ * (for mpg123-0.59o) at
+ * http://user.ecc.u-tokyo.ac.jp/~g810370/linux-simd/ (Japanese).
+ *
+ * by KIMURA Takuhiro <kim@hannah.ipc.miyakyo-u.ac.jp> - until 31.Mar.1999
+ * <kim@comtec.co.jp> - after 1.Apr.1999
+ *
+ * Original disclaimer:
+ * The author of this program disclaim whole expressed or implied
+ * warranties with regard to this program, and in no event shall the
+ * author of this program liable to whatever resulted from the use of
+ * this program. Use it at your own risk.
+ *
+ * Modified by Nick Kurshev <nickols_k@mail.ru>
+ *
+ * 2003/06/21: Moved to GCC inline assembly - Alex Beregszaszi
+ */
+
+#define __DCT36_OPTIMIZE_FOR_K7
+
+#include "dct36_3dnow.c"