[MPlayer-dev-eng] [PATCH] Improve MMX/SSE support on OS X/Intel

Valtteri Vuorikoski vuori at sci.fi
Wed Jul 26 00:26:56 CEST 2006


The attached patch allows cpudetect.c to detect the usability of SSE/ 
SSE2 instructions on OS X/Intel and allows mp3lib to be compiled. SSE  
support for mp3lib is enabled, but MMX isn't due to (as far as I  
understand) use of addressing modes not supported by the Apple  
assembler in tabinit_MMX.c.

I have used the patch from http://trac.videolan.org/vlc/browser/trunk/ 
extras/contrib/src/Patches/ffmpeg-svn-mactel.patch to fix the MMX/SSE  
assembly used in libavcodec. This patch seems reasonable to me in  
that it doesn't make any changes in functionality and seems otherwise  
clean except that the /nop -> "nop" conversion as such is not  
portable. What the heck is "/nop, %mm0" anyway?

Besides that issue, are there other arguments against using the vlc  
patch?

With these changes plus my earlier DLL support patch, it should be  
possible to cleanly ./configure;make the command-line mplayer on OS X/ 
Intel.

  -v
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osx-mmx.patch
Type: application/octet-stream
Size: 4223 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060726/a62844e0/attachment.obj>


More information about the MPlayer-dev-eng mailing list