From: David Schleef Date: Sun, 13 Jun 2010 19:26:32 +0000 (-0700) Subject: clean up memcpy_speed X-Git-Tag: orc-0.4.6~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53be5515994699c5e7badb9b0606dced1ab18868;p=platform%2Fupstream%2Forc.git clean up memcpy_speed --- diff --git a/testsuite/memcpy_speed.c b/testsuite/memcpy_speed.c index 89b8d54..a840a91 100644 --- a/testsuite/memcpy_speed.c +++ b/testsuite/memcpy_speed.c @@ -4,6 +4,8 @@ #include #include +#define ORC_ENABLE_UNSTABLE_API + #include #include #include @@ -32,7 +34,7 @@ main(int argc, char *argv[]) s = malloc(1024*1024*64+1024); d = malloc(1024*1024*64+1024); - src = ALIGN(s,128); + src = ORC_PTR_OFFSET(ALIGN(s,128),0); dest = ALIGN(d,128); orc_profile_init (&prof); @@ -42,35 +44,6 @@ main(int argc, char *argv[]) } orc_profile_get_ave_std (&prof, &null, &std); -#if 0 - // printf("orc_memset:\n"); - for(i=10;i<26;i++){ - orc_profile_init (&prof); - orc_profile_init (&prof_libc); - for(j=0;j<10;j++){ - orc_profile_start(&prof); - orc_memset (dest, 0, 1<