resent after sending to directfb-cvs
Claudio Ciccani schrieb:
> Denis Oliver Kropp via CVS wrote:
>> CVSROOT: /cvs/directfb
>> Module name: DirectFB
>> Changes by: dok 20061029 11:48:35
>>
>> Modified files:
>> lib/direct : Makefile.am dtest.c memcpy.c
>> src/gfx/generic: generic.c
>> Removed files:
>> lib/direct : cpu_accel.c cpu_accel.h
>>
>> Log message:
>> Removed GPL code, mainly optimized x86 memcpy routines. libc seems fastest
>> now anyways.
>>
>
> It doesn't seem faster to me!
I tested it using df_dok:
[EMAIL PROTECTED]/cvs/directfb/DirectFB/lib/direct] df_dok --blit
--dfb:memcpy=libc --system
Benchmarking with 256x256 in 16bit mode... (16bit)
Blit 3.006 secs ( 446.935
MPixel/sec)
[EMAIL PROTECTED]/cvs/directfb/DirectFB/lib/direct] df_dok --blit
--dfb:memcpy=mmxext --system
Benchmarking with 256x256 in 16bit mode... (16bit)
Blit 3.009 secs ( 324.521
MPixel/sec)
> Which version of libc are you using?
At least I can tell it's 2.4 from /lib/...
But I just saw that the benchmarks done by the memcpy code indeed shows
a different result:
Benchmarking memcpy methods (smaller is better):
libc 4347634
linux 3974560
mmx 4744836
mmxext 2958434
sse 3783101
Also in df_dok if you set the size to something way bigger, you'll
get better results with the mmxext version.
> And, most important thing, why should we rely on libc to have x86
> optimized memcpy()? What does it happen if someone wants to build using
> uClibc?
The only reason is the GPL, but we can start asking all relevant authors
to relicense under LGPL.
I also like to keep this code in, but for now it's taken out :(
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-cvs mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-cvs
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev