[svn:parrot] r43441 - in trunk: . config/auto/cpu/i386 config/auto/sizes config/gen/platform docs/book/draft docs/book/pct docs/dev docs/pdds examples/embed examples/languages/abc examples/languages/squaak examples/pge include/parrot lib/Parrot/Configure/Step ports/cpan ports/cygwin ports/debian ports/fedora ports/mandriva ports/suse runtime/parrot/languages runtime/parrot/library/Math runtime/parrot/library/Math/Random src/call src/gc src/interp src/runcore t/compilers/tge t/library t/oo t/pmc t/src t/steps/init/hints tools/dev tools/util

jkeenan at svn.parrot.org jkeenan at svn.parrot.org
Wed Jan 13 12:36:56 UTC 2010


Author: jkeenan
Date: Wed Jan 13 12:36:52 2010
New Revision: 43441
URL: https://trac.parrot.org/parrot/changeset/43441

Log:
Merge tt473_remove_memcpy_aligned branch into trunk.  Applying patch submitted by Andy Dougherty in http://trac.parrot.org/parrot/ticket/473 to remove unused configuration probes.

Deleted:
   trunk/config/auto/cpu/i386/Makefile
   trunk/config/auto/cpu/i386/memcpy_mmx.c
   trunk/config/auto/cpu/i386/memcpy_mmx_in.c
   trunk/config/auto/cpu/i386/memcpy_sse.c
   trunk/config/auto/cpu/i386/memcpy_sse_in.c
Modified:
   trunk/   (props changed)
   trunk/MANIFEST
   trunk/config/auto/cpu/i386/auto.pm
   trunk/config/auto/sizes/intval_maxmin_c.in   (props changed)
   trunk/config/gen/platform/platform_interface.h
   trunk/docs/book/draft/README   (props changed)
   trunk/docs/book/draft/appa_glossary.pod   (props changed)
   trunk/docs/book/draft/appb_patch_submission.pod   (props changed)
   trunk/docs/book/draft/appc_command_line_options.pod   (props changed)
   trunk/docs/book/draft/appd_build_options.pod   (props changed)
   trunk/docs/book/draft/appe_source_code.pod   (props changed)
   trunk/docs/book/draft/ch01_introduction.pod   (props changed)
   trunk/docs/book/draft/ch02_getting_started.pod   (props changed)
   trunk/docs/book/draft/ch07_dynpmcs.pod   (props changed)
   trunk/docs/book/draft/ch08_dynops.pod   (props changed)
   trunk/docs/book/draft/ch10_opcode_reference.pod   (props changed)
   trunk/docs/book/draft/ch11_directive_reference.pod   (props changed)
   trunk/docs/book/draft/ch12_operator_reference.pod   (props changed)
   trunk/docs/book/draft/chXX_hlls.pod   (props changed)
   trunk/docs/book/draft/chXX_library.pod   (props changed)
   trunk/docs/book/draft/chXX_testing_and_debugging.pod   (props changed)
   trunk/docs/book/pct/ch01_introduction.pod   (props changed)
   trunk/docs/book/pct/ch02_getting_started.pod   (props changed)
   trunk/docs/book/pct/ch03_compiler_tools.pod   (props changed)
   trunk/docs/book/pct/ch04_pge.pod   (props changed)
   trunk/docs/book/pct/ch05_nqp.pod   (props changed)
   trunk/docs/dev/c_functions.pod   (props changed)
   trunk/docs/pdds/pdd30_install.pod   (props changed)
   trunk/examples/embed/cotorra.c   (props changed)
   trunk/examples/languages/abc/   (props changed)
   trunk/examples/languages/squaak/   (props changed)
   trunk/examples/pge/demo.pir   (props changed)
   trunk/include/parrot/call.h   (props changed)
   trunk/include/parrot/gc_api.h   (props changed)
   trunk/include/parrot/runcore_api.h   (props changed)
   trunk/include/parrot/runcore_profiling.h   (props changed)
   trunk/include/parrot/runcore_trace.h   (props changed)
   trunk/lib/Parrot/Configure/Step/Test.pm   (props changed)
   trunk/ports/cpan/pause_guide.pod   (props changed)
   trunk/ports/cygwin/parrot-1.0.0-1.cygport   (props changed)
   trunk/ports/debian/libparrot-dev.install.in   (props changed)
   trunk/ports/debian/libparrot.install.in   (props changed)
   trunk/ports/debian/parrot-doc.install.in   (props changed)
   trunk/ports/debian/parrot.install.in   (props changed)
   trunk/ports/fedora/parrot.spec.fedora   (props changed)
   trunk/ports/mandriva/parrot.spec.mandriva   (props changed)
   trunk/ports/suse/parrot.spec.suse   (props changed)
   trunk/runtime/parrot/languages/   (props changed)
   trunk/runtime/parrot/library/Math/Rand.pir   (props changed)
   trunk/runtime/parrot/library/Math/Random/mt19937ar.pir   (props changed)
   trunk/src/call/ops.c   (props changed)
   trunk/src/call/pcc.c   (props changed)
   trunk/src/gc/alloc_memory.c   (props changed)
   trunk/src/gc/alloc_resources.c   (props changed)
   trunk/src/gc/api.c   (props changed)
   trunk/src/gc/malloc.c   (props changed)
   trunk/src/gc/malloc_trace.c   (props changed)
   trunk/src/gc/mark_sweep.c   (props changed)
   trunk/src/gc/system.c   (props changed)
   trunk/src/interp/inter_cb.c   (props changed)
   trunk/src/interp/inter_create.c   (props changed)
   trunk/src/interp/inter_misc.c   (props changed)
   trunk/src/runcore/cores.c   (props changed)
   trunk/src/runcore/main.c   (props changed)
   trunk/src/runcore/profiling.c   (props changed)
   trunk/src/runcore/trace.c   (props changed)
   trunk/t/compilers/tge/NoneGrammar.tg   (props changed)
   trunk/t/library/mt19937ar.t   (props changed)
   trunk/t/library/mt19937ar.txt   (props changed)
   trunk/t/oo/root_new.t   (props changed)
   trunk/t/pmc/namespace-old.t   (props changed)
   trunk/t/src/embed.t   (props changed)
   trunk/t/steps/init/hints/linux-01.t   (props changed)
   trunk/tools/dev/fetch_languages.pl   (props changed)
   trunk/tools/dev/mk_gitignore.pl   (props changed)
   trunk/tools/util/perlcritic-cage.conf   (props changed)

Modified: trunk/MANIFEST
==============================================================================
--- trunk/MANIFEST	Wed Jan 13 03:39:39 2010	(r43440)
+++ trunk/MANIFEST	Wed Jan 13 12:36:52 2010	(r43441)
@@ -1,7 +1,7 @@
 # ex: set ro:
 # $Id$
 #
-# generated by tools/dev/mk_manifest_and_skip.pl Thu Jan  7 09:32:27 2010 UT
+# generated by tools/dev/mk_manifest_and_skip.pl Wed Jan 13 12:09:32 2010 UT
 #
 # See below for documentation on the format of this file.
 #
@@ -214,12 +214,7 @@
 config/auto/cgoto.pm                                        []
 config/auto/cgoto/test_c.in                                 []
 config/auto/cpu.pm                                          []
-config/auto/cpu/i386/Makefile                               []
 config/auto/cpu/i386/auto.pm                                []
-config/auto/cpu/i386/memcpy_mmx.c                           []
-config/auto/cpu/i386/memcpy_mmx_in.c                        []
-config/auto/cpu/i386/memcpy_sse.c                           []
-config/auto/cpu/i386/memcpy_sse_in.c                        []
 config/auto/cpu/i386/test_gcc_cmpxchg_c.in                  []
 config/auto/cpu/ppc/auto.pm                                 []
 config/auto/cpu/ppc/test_gcc_cmpset_c.in                    []

Deleted: trunk/config/auto/cpu/i386/Makefile
==============================================================================
--- trunk/config/auto/cpu/i386/Makefile	Wed Jan 13 12:36:52 2010	(r43440)
+++ /dev/null	00:00:00 1970	(deleted)
@@ -1,17 +0,0 @@
-# use gcc/as to generate some files
-# this file is not intended to be run during normal config
-# but only by developers that change the source
-
-
-all: memcpy_files
-
-memcpy_files: memcpy_mmx.c memcpy_sse.c
-
-memcpy_mmx.c: memcpy_mmx_in.c ../../../../tools/dev/as2c.pl
-	perl ../../../../tools/dev/as2c.pl memcpy_mmx_in > $@
-	rm -f memcpy_mmx_in.s memcpy_mmx_in.o
-
-memcpy_sse.c: memcpy_sse_in.c ../../../../tools/dev/as2c.pl
-	perl ../../../../tools/dev/as2c.pl memcpy_sse_in > $@
-	rm -f memcpy_sse_in.s memcpy_sse_in.o
-

Modified: trunk/config/auto/cpu/i386/auto.pm
==============================================================================
--- trunk/config/auto/cpu/i386/auto.pm	Wed Jan 13 03:39:39 2010	(r43440)
+++ trunk/config/auto/cpu/i386/auto.pm	Wed Jan 13 12:36:52 2010	(r43441)
@@ -7,10 +7,10 @@
 
 =head1 DESCRIPTION
 
-Test for MMX/SSE functionality. Creates these Config entries
+Test for cmpxchg ASM functionality. Creates these Config entries
 
  TEMP_generated => 'files ...'   for inclusion in platform.c or platform.h
- i386_has_mmx   => 1
+ i386_has_gcc_cmpxchg_c   => 1
 
 =cut
 
@@ -24,25 +24,7 @@
 
     my $verbose = $conf->options->get('verbose');
 
-    my @files = qw( memcpy_mmx.c memcpy_sse.c );
-    for my $f (@files) {
-        print " $f " if $verbose;
-        my ($suffix) = $f =~ /memcpy_(\w+)/;
-        my $path_f = "config/auto/cpu/i386/$f";
-        $conf->cc_gen($path_f);
-        eval( $conf->cc_build("-DPARROT_CONFIG_TEST") );
-        if ($@) {
-            print " $@ " if $verbose;
-        }
-        else {
-            if ( $conf->cc_run() =~ /ok/ ) {
-                _handle_cc_run_ok($conf, $suffix, $path_f, $verbose);
-            }
-        }
-        $conf->cc_clean();
-    }
-
-    @files = qw( test_gcc_cmpxchg_c.in );
+    my @files = qw( test_gcc_cmpxchg_c.in );
     for my $f (@files) {
         print " $f " if $verbose;
         my ($suffix) = $f =~ /test_(\w+)/;

Deleted: trunk/config/auto/cpu/i386/memcpy_mmx.c
==============================================================================
--- trunk/config/auto/cpu/i386/memcpy_mmx.c	Wed Jan 13 12:36:52 2010	(r43440)
+++ /dev/null	00:00:00 1970	(deleted)
@@ -1,103 +0,0 @@
-/*
- * DO NOT EDIT THIS FILE
- *
- * Generated from memcpy_mmx_in.c via memcpy_mmx_in.s
- * by '../../../../tools/dev/as2c.pl memcpy_mmx_in'
- */
-
-/*
- * GAS LISTING /home/chip/tmp/cci2hVe3.s 			page 1
- *
- *
- *    1              		.file	"memcpy_mmx_in.c"
- *    2              		.text
- *    3              		.p2align 4,,15
- *    4              	.globl Parrot_memcpy_aligned_mmx
- *
- */
-static const char Parrot_memcpy_aligned_mmx_code[] = {
-                           /* Parrot_memcpy_aligned_mmx: */
-    0x57,                       /* pushl %edi */
-    0x56,                       /* pushl %esi */
-    0x53,                       /* pushl %ebx */
-    0x83, 0xEC, 0x10,           /* subl $16, %esp */
-    0x8B, 0x44, 0x24, 0x20,     /* movl 32(%esp), %eax */
-    0x8B, 0x5C, 0x24, 0x24,     /* movl 36(%esp), %ebx */
-    0x8B, 0x54, 0x24, 0x28,     /* movl 40(%esp), %edx */
-    0xDD, 0x5C, 0x24, 0x08,     /* fstpl 8(%esp) */
-    0x89, 0xC7,                 /* mov %eax, %edi */
-    0x89, 0xDE,                 /* mov %ebx, %esi */
-    0x89, 0xD1,                 /* mov %edx, %ecx */
-    0xC1, 0xE9, 0x04,           /* shr $4, %ecx */
-                           /* 1: */
-    0x0F, 0x6F, 0x06,           /* movq 0(%esi), %mm0 */
-    0x0F, 0x6F, 0x4E, 0x08,     /* movq 8(%esi), %mm1 */
-    0x83, 0xC6, 0x10,           /* add $16, %esi */
-    0x0F, 0x7F, 0x07,           /* movq %mm0, 0(%edi) */
-    0x0F, 0x7F, 0x4F, 0x08,     /* movq %mm1, 8(%edi) */
-    0x83, 0xC7, 0x10,           /* add $16, %edi */
-    0x49,                       /* dec %ecx */
-    0x75, 0xE9,                 /* jnz 1b */
-    0x0F, 0x77,                 /* emms */
-    0xDD, 0x44, 0x24, 0x08,     /* fldl 8(%esp) */
-    0x83, 0xC4, 0x10,           /* addl $16, %esp */
-    0x5B,                       /* popl %ebx */
-    0x5E,                       /* popl %esi */
-    0x5F,                       /* popl %edi */
-    0xC3,                       /* ret */
-    0x00
-};
-
-#include <stdlib.h>
-typedef void* (*Parrot_memcpy_aligned_mmx_t)(void *dest, const void *src, size_t);
-
-#ifndef NDEBUG
-#include <assert.h>
-static void*
-Parrot_memcpy_aligned_mmx_debug(void* d, const void* s, size_t n)
-{
-    assert( (n & 0xf) == 0);
-    assert( ((unsigned long) d & 7) == 0);
-    assert( ((unsigned long) s & 7) == 0);
-    return ((Parrot_memcpy_aligned_mmx_t)Parrot_memcpy_aligned_mmx_code)(d, s, n);
-}
-
-Parrot_memcpy_aligned_mmx_t Parrot_memcpy_aligned_mmx = Parrot_memcpy_aligned_mmx_debug;
-
-#else
-Parrot_memcpy_aligned_mmx_t Parrot_memcpy_aligned_mmx =
-    (Parrot_memcpy_aligned_mmx_t) Parrot_memcpy_aligned_mmx_code;
-#endif
-
-#ifdef PARROT_CONFIG_TEST
-#include <string.h>
-#include <stdio.h>
-int main(int argc, char *argv[]) {
-    unsigned char *s, *d;
-    size_t i, n;
-
-    n = 640;	/* sizeof(reg_store) */
-
-    s = (unsigned char *)malloc(n);
-    for (i = 0; i < n; ++i)
-    s[i] = i & 0xff;
-    d = (unsigned char *)malloc(n);
-    for (i = 0; i < n; ++i)
-    d[i] = 0xff;
-    Parrot_memcpy_aligned_mmx(d, s, n);
-    for (i = 0; i < n; ++i)
-    if (d[i] != (i & 0xff)) {
-        printf("error s[%d] = %d d = %d\n", i, s[i], d[i]);
-        exit(EXIT_FAILURE);
-    }
-    puts("ok");
-    return 0;
-}
-#endif /* PARROT_CONFIG_TEST */
-
-/*
- * Local variables:
- *   c-file-style: "parrot"
- * End:
- * vim: expandtab shiftwidth=4:
- */

Deleted: trunk/config/auto/cpu/i386/memcpy_mmx_in.c
==============================================================================
--- trunk/config/auto/cpu/i386/memcpy_mmx_in.c	Wed Jan 13 12:36:52 2010	(r43440)
+++ /dev/null	00:00:00 1970	(deleted)
@@ -1,95 +0,0 @@
-/*
- * $Id$
- * Copyright (C) 2004-2006, Parrot Foundation.
- */
-
-#include <stdlib.h>
-void*
-Parrot_memcpy_aligned_mmx(void *dest, const void *src, size_t n)
-{
-    double tos;
-    /*
-     * must preserve tos - need also a version with fstpt/fldt
-     */
-    asm(
-        "fstpl %3\n\t"
-        "mov %0, %%edi\n\t"
-        "mov %1, %%esi\n\t"
-        "mov %2, %%ecx\n\t"
-        "shr $4, %%ecx\n\t"
-        "# .p2align 3\n\t"
-        "1:\n\t"
-        "movq 0(%%esi), %%mm0\n\t"
-        "movq 8(%%esi), %%mm1\n\t"
-        "add $16, %%esi\n\t"
-        "movq %%mm0, 0(%%edi)\n\t"
-        "movq %%mm1, 8(%%edi)\n\t"
-        "add $16, %%edi\n\t"
-        "dec %%ecx\n\t"
-        "jnz 1b\n\t"
-        "emms\n\t"
-        "fldl %3\n\t"
-    : /* no out */
-    : "g"(dest), "g"(src), "g"(n), "m"(tos)
-    : "%esi", "%edi", "%ecx", "memory");
-
-    return dest;
-}
-
-/*INTERFACE
-
-#include <stdlib.h>
-typedef void* (*@FUNC at _t)(void *dest, const void *src, size_t);
-
-#ifndef NDEBUG
-#  include <assert.h>
-static void*
- at FUNC@_debug(void* d, const void* s, size_t n)
-{
-    assert( (n & 0xf) == 0);
-    assert( ((unsigned long) d & 7) == 0);
-    assert( ((unsigned long) s & 7) == 0);
-    return ((@FUNC at _t)@FUNC at _code)(d, s, n);
-}
-
- at FUNC@_t @FUNC@ = @FUNC at _debug;
-
-#else
- at FUNC@_t @FUNC@ =
-    (@FUNC at _t) @FUNC at _code;
-#endif
-
-#ifdef PARROT_CONFIG_TEST
-#  include <string.h>
-#  include <stdio.h>
-int main(int argc, char *argv[]) {
-    unsigned char *s, *d;
-    size_t i, n;
-
-    n = 640; @* sizeof(reg_store) *@
-
-    s = malloc(n);
-    for (i = 0; i < n; ++i)
-        s[i] = i & 0xff;
-    d = malloc(n);
-    for (i = 0; i < n; ++i)
-        d[i] = 0xff;
-    @FUNC@(d, s, n);
-    for (i = 0; i < n; ++i) {
-        if (d[i] != (i & 0xff)) {
-            printf("error s[%d] = %d d = %d\n", i, s[i], d[i]);
-            exit(EXIT_FAILURE);
-        }
-    }
-    puts("ok");
-    return 0;
-}
-#endif @* PARROT_CONFIG_TEST *@
-INTERFACE*/
-
-/*
- * Local variables:
- *   c-file-style: "parrot"
- * End:
- * vim: expandtab shiftwidth=4:
- */

Deleted: trunk/config/auto/cpu/i386/memcpy_sse.c
==============================================================================
--- trunk/config/auto/cpu/i386/memcpy_sse.c	Wed Jan 13 12:36:52 2010	(r43440)
+++ /dev/null	00:00:00 1970	(deleted)
@@ -1,94 +0,0 @@
-/*
- * DO NOT EDIT THIS FILE
- *
- * Generated from memcpy_sse_in.c via memcpy_sse_in.s
- * by '../../../../tools/dev/as2c.pl memcpy_sse_in'
- */
-
-/*
- * GAS LISTING /home/chip/tmp/ccvNpFsi.s 			page 1
- *
- *
- *    1              		.file	"memcpy_sse_in.c"
- *    2              		.text
- *    3              		.p2align 4,,15
- *    4              	.globl Parrot_memcpy_aligned_sse
- *
- */
-static const char Parrot_memcpy_aligned_sse_code[] = {
-                           /* Parrot_memcpy_aligned_sse: */
-    0x57,                       /* pushl %edi */
-    0x56,                       /* pushl %esi */
-    0x8B, 0x44, 0x24, 0x0C,     /* movl 12(%esp), %eax */
-    0x8B, 0x4C, 0x24, 0x14,     /* mov 20(%esp), %ecx */
-    0x8B, 0x74, 0x24, 0x10,     /* mov 16(%esp), %esi */
-    0x89, 0xC7,                 /* mov %eax, %edi */
-    0xC1, 0xE9, 0x05,           /* shr $5, %ecx */
-                           /* 1: */
-    0x0F, 0x10, 0x06,           /* movups 0(%esi), %xmm0 */
-    0x0F, 0x10, 0x4E, 0x10,     /* movups 16(%esi), %xmm1 */
-    0x83, 0xC6, 0x20,           /* add $32, %esi */
-    0x0F, 0x11, 0x07,           /* movups %xmm0, 0(%edi) */
-    0x0F, 0x11, 0x4F, 0x10,     /* movups %xmm1, 16(%edi) */
-    0x83, 0xC7, 0x20,           /* add $32, %edi */
-    0x49,                       /* dec %ecx */
-    0x75, 0xE9,                 /* jnz 1b */
-    0x5E,                       /* popl %esi */
-    0x5F,                       /* popl %edi */
-    0xC3,                       /* ret */
-    0x00
-};
-
-#include <stdlib.h>
-typedef void* (*Parrot_memcpy_aligned_sse_t)(void *dest, const void *src, size_t);
-
-#ifndef NDEBUG
-#include <assert.h>
-static void*
-Parrot_memcpy_aligned_sse_debug(void* d, const void* s, size_t n)
-{
-    assert( (n & 0x1f) == 0);
-    assert( ((unsigned long) d & 7) == 0);
-    assert( ((unsigned long) s & 7) == 0);
-    return ((Parrot_memcpy_aligned_sse_t)Parrot_memcpy_aligned_sse_code)(d, s, n);
-}
-
-Parrot_memcpy_aligned_sse_t Parrot_memcpy_aligned_sse = Parrot_memcpy_aligned_sse_debug;
-
-#else
-Parrot_memcpy_aligned_sse_t Parrot_memcpy_aligned_sse =
-    (Parrot_memcpy_aligned_sse_t) Parrot_memcpy_aligned_sse_code;
-#endif
-
-#ifdef PARROT_CONFIG_TEST
-#include <string.h>
-#include <stdio.h>
-int main(int argc, char *argv[]) {
-    unsigned char *s, *d;
-    size_t i, n;
-
-    n = 640;	/* sizeof(reg_store) */
-
-    s = (unsigned char *)malloc(n);
-    for (i = 0; i < n; ++i)
-    s[i] = i & 0xff;
-    d = (unsigned char *)malloc(n);
-    for (i = 0; i < n; ++i)
-    d[i] = 0xff;
-    Parrot_memcpy_aligned_sse(d, s, n);
-    for (i = 0; i < n; ++i)
-    if (d[i] != (i & 0xff)) {
-        printf("error s[%d] = %d d = %d\n", i, s[i], d[i]);
-        exit(EXIT_FAILURE);
-    }
-    puts("ok");
-    return 0;
-}
-#endif /* PARROT_CONFIG_TEST */
-
-/*
- * Local variables:
- *   c-file-style: "parrot"
- * End:
- * vim: expandtab shiftwidth=4:
- */

Deleted: trunk/config/auto/cpu/i386/memcpy_sse_in.c
==============================================================================
--- trunk/config/auto/cpu/i386/memcpy_sse_in.c	Wed Jan 13 12:36:52 2010	(r43440)
+++ /dev/null	00:00:00 1970	(deleted)
@@ -1,85 +0,0 @@
-/*
- * $Id$
- * Copyright (C) 2004-2006, Parrot Foundation.
- */
-
-#include <stdlib.h>
-void*
-Parrot_memcpy_aligned_sse(void *dest, const void *src, size_t n)
-{
-    asm(
-        "mov %0, %%ecx\n\t"
-        "mov %1, %%esi\n\t"
-        "mov %2, %%edi\n\t"
-        "shr $5, %%ecx\n\t"
-        "#.p2align 4\n\t"
-        "1:\n\t"
-        "movups 0(%%esi), %%xmm0\n\t"
-        "movups 16(%%esi), %%xmm1\n\t"
-        "add $32, %%esi\n\t"
-        "movups %%xmm0, 0(%%edi)\n\t"
-        "movups %%xmm1, 16(%%edi)\n\t"
-        "add $32, %%edi\n\t"
-        "dec %%ecx\n\t"
-        "jnz 1b\n\t"
-
-    : : "g"(n), "g"(src), "g"(dest) : "%esi", "%edi", "%ecx");
-    return dest;
-}
-
-/*INTERFACE
-
-#include <stdlib.h>
-typedef void* (*@FUNC at _t)(void *dest, const void *src, size_t);
-
-#ifndef NDEBUG
-#  include <assert.h>
-static void*
- at FUNC@_debug(void* d, const void* s, size_t n)
-{
-    assert( (n & 0x1f) == 0);
-    assert( ((unsigned long) d & 7) == 0);
-    assert( ((unsigned long) s & 7) == 0);
-    return ((@FUNC at _t)@FUNC at _code)(d, s, n);
-}
-
- at FUNC@_t @FUNC@ = @FUNC at _debug;
-
-#else
- at FUNC@_t @FUNC@ =
-    (@FUNC at _t) @FUNC at _code;
-#endif
-
-#ifdef PARROT_CONFIG_TEST
-#  include <string.h>
-#  include <stdio.h>
-int main(int argc, char *argv[]) {
-    unsigned char *s, *d;
-    size_t i, n;
-
-    n = 640; @* sizeof(reg_store) *@
-
-    s = malloc(n);
-    for (i = 0; i < n; ++i)
-        s[i] = i & 0xff;
-    d = malloc(n);
-    for (i = 0; i < n; ++i)
-        d[i] = 0xff;
-    @FUNC@(d, s, n);
-    for (i = 0; i < n; ++i)
-        if (d[i] != (i & 0xff)) {
-            printf("error s[%d] = %d d = %d\n", i, s[i], d[i]);
-            exit(EXIT_FAILURE);
-        }
-    puts("ok");
-    return 0;
-}
-#endif @* PARROT_CONFIG_TEST *@
-INTERFACE*/
-
-/*
- * Local variables:
- *   c-file-style: "parrot"
- * End:
- * vim: expandtab shiftwidth=4:
- */

Modified: trunk/config/gen/platform/platform_interface.h
==============================================================================
--- trunk/config/gen/platform/platform_interface.h	Wed Jan 13 03:39:39 2010	(r43440)
+++ trunk/config/gen/platform/platform_interface.h	Wed Jan 13 12:36:52 2010	(r43441)
@@ -49,26 +49,6 @@
 #  define mem_realloc_executable(a, b, c) mem_sys_realloc((a), (c))
 #endif
 
-void* Parrot_memcpy_aligned(void*, void*, size_t);
-
-#if defined(PARROT_HAS_I386_SSE)
-
-typedef void* (*Parrot_memcpy_func_t)(void *dest, const void *src, size_t);
-extern Parrot_memcpy_func_t Parrot_memcpy_aligned_sse;
-
-#  define Parrot_memcpy_aligned(d, s, l) Parrot_memcpy_aligned_sse((d), (s), (l))
-
-#elif defined(PARROT_HAS_I386_MMX)
-
-typedef void* (*Parrot_memcpy_func_t)(void *dest, const void *src, size_t);
-extern Parrot_memcpy_func_t Parrot_memcpy_aligned_mmx;
-
-#  define Parrot_memcpy_aligned(d, s, l) Parrot_memcpy_aligned_mmx((d), (s), (l))
-
-#else
-#  define Parrot_memcpy_aligned(d, s, l) mem_sys_memcopy((d), (s), (l))
-#endif
-
 /*
 ** Time
 */


More information about the parrot-commits mailing list