summaryrefslogtreecommitdiffstats
path: root/waftools/detections
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-19 17:09:24 +0200
committerwm4 <wm4@nowhere>2014-04-19 17:10:56 +0200
commit0cff5836c3f410136e3fdb3e2f9e24bb81dd9a87 (patch)
tree04d756999fb23a8fc83b161c950facce1fc30f8d /waftools/detections
parent061c7eba9770ca5f29dd3c0e5b64a276feca30cc (diff)
downloadmpv-0cff5836c3f410136e3fdb3e2f9e24bb81dd9a87.tar.bz2
mpv-0cff5836c3f410136e3fdb3e2f9e24bb81dd9a87.tar.xz
Remove CPU detection and inline asm handling
Not needed anymore. I'm not opposed to having asm, but inline asm is too much of a pain, and it was planned long ago to eventually get rid fo all inline asm uses. For the note, the inline asm use that was removed with the previous commits was almost worthless. It was confined to video filters, and most video filtering is now done with libavfilter. Some mpv filters (like vf_pullup) actually redirect to libavfilter if possible. If asm is added in the future, it should happen in the form of external files.
Diffstat (limited to 'waftools/detections')
-rw-r--r--waftools/detections/cpu.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/waftools/detections/cpu.py b/waftools/detections/cpu.py
deleted file mode 100644
index 3a8615f259..0000000000
--- a/waftools/detections/cpu.py
+++ /dev/null
@@ -1,28 +0,0 @@
-def x86(ctx):
- ctx.define('ARCH_X86', 1)
- ctx.define('ARCH_X86_32', 1)
-
-def x86_64(ctx):
- ctx.define('ARCH_X86', 1)
- ctx.define('ARCH_X86_64', 1)
- ctx.define('HAVE_FAST_64BIT', 1)
-
-def ia64(ctx):
- ctx.define('HAVE_FAST_64BIT', 1)
-
-def default(ctx):
- pass
-
-def configure(ctx):
- ctx.define('ARCH_X86', 0)
- ctx.define('ARCH_X86_32', 0)
- ctx.define('ARCH_X86_64', 0)
- ctx.define('HAVE_FAST_64BIT', 0)
-
- ctx.define('HAVE_MMX', 'HAVE_ASM && ARCH_X86', quote=False)
- ctx.define('HAVE_MMX2', 'HAVE_ASM && ARCH_X86', quote=False)
- ctx.define('HAVE_SSE', 'HAVE_ASM && ARCH_X86', quote=False)
- ctx.define('HAVE_SSE2', 'HAVE_ASM && ARCH_X86', quote=False)
- ctx.define('HAVE_SSSE3', 'HAVE_ASM && ARCH_X86', quote=False)
-
- globals().get(ctx.env.DEST_CPU, default)(ctx)