diff options
Diffstat (limited to 'waftools')
-rw-r--r-- | waftools/detections/cpu.py | 28 | ||||
-rw-r--r-- | waftools/fragments/ebx.c | 12 |
2 files changed, 0 insertions, 40 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) diff --git a/waftools/fragments/ebx.c b/waftools/fragments/ebx.c deleted file mode 100644 index b487939c56..0000000000 --- a/waftools/fragments/ebx.c +++ /dev/null @@ -1,12 +0,0 @@ -int main(void) { - int x; - __asm__ volatile( - "xor %0, %0" - :"=b"(x) - // just adding ebx to clobber list seems unreliable with some - // compilers, e.g. Haiku's gcc 2.95 - ); - // and the above check does not work for OSX 64 bit... - __asm__ volatile("":::"%ebx"); - return 0; -} |