It looks like the only use of ebx is in the code to detect CPU features
using cpuid.  A better way to do it would be to read the /proc/cpuinfo file
and look for the sse2 or whatever flag.

On Tue, Oct 12, 2010 at 11:06 AM, sfrase6 <sfra...@comcast.net> wrote:

>
> ----- Original Message -----
> From: "Christian Ebert" <blacktr...@gmx.net>
> To: mjpeg-users@lists.sourceforge.net
> Sent: Tuesday, October 12, 2010 6:17:56 AM
> Subject: Re: [Mjpeg-users] [Mjpeg-developer] yuvdenoise performance patch
>
> > gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils   -O3 -funroll-all-loops
> -ffast-math -march=nocona -mtune=nocona -g -O2 -I/sw/include -no-cpp-precomp
> -D_THREAD_SAFE  -Wall -Wunused -MT main.o -MD -MP -MF .deps/main.Tpo -c -o
> main.o main.c
> > main.c: In function ‘filter_plane_median_sse2’:
> > main.c:814: warning: unused variable ‘cnt’
> > main.c:813: warning: unused variable ‘avg’
> > main.c: In function ‘main’:
> > main.c:1332: error: PIC register ‘ebx’ clobbered in ‘asm’
> > main.c:1337: error: PIC register ‘ebx’ clobbered in ‘asm’
> > make[2]: *** [main.o] Error 1
> > make[1]: *** [all-recursive] Error 1
> > make: *** [all] Error 2
>
> Hi Christian,
> I'm not sure how to fix your particular issue, but it seems that there are
> quite a few instances of that issue in Google that you might want to
> research:
>
> http://www.google.com/search?q=error%3A+PIC+register+%E2%80%98ebx%E2%80%99+clobbered+in+%E2%80%98asm%E2%80%99&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
>
> scott
>
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> Mjpeg-users mailing list
> Mjpeg-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mjpeg-users
>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to