]> granicus.if.org Git - libx264/commitdiff
Re-enabled x86 optims on MacIntel, assume Nasm CVS is installed and
authorEric Petit <titer@videolan.org>
Sun, 15 Jan 2006 22:29:15 +0000 (22:29 +0000)
committerEric Petit <titer@videolan.org>
Sun, 15 Jan 2006 22:29:15 +0000 (22:29 +0000)
  -f macho -DPREFIX just seems to do the job

git-svn-id: svn://svn.videolan.org/x264/trunk@401 df754926-b1dd-0310-bc7b-ec298dee348c

Makefile
common/cpu.c
configure

index 2e0c2703c81fb6ccd4f818029366072081c5a47a..b026e32d822c78cd1bacd6b014c1b7a79b170032 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,9 +15,6 @@ ifeq ($(VIS),yes)
 SRCS   += common/visualize.c common/display-x11.c
 endif
 
-# No optims on OS X / Intel yet because of nasm limitations
-ifneq ($(SYS),MACOSX)
-
 # MMX/SSE optims
 ifeq ($(ARCH),X86)
 SRCS   += common/i386/mc-c.c common/i386/dct-c.c common/i386/predict.c
@@ -41,8 +38,6 @@ OBJASM  = $(ASMSRC:%.asm=%.o)
 ASFLAGS += -Icommon/amd64
 endif
 
-endif # SYS_MACOSX
-
 # AltiVec optims
 ifeq ($(ARCH),PPC)
 SRCS += common/ppc/mc.c common/ppc/pixel.c common/ppc/dct.c
index 94b68c5d84ef55c32fcc77ac81bcffa78ea59a0c..7a8bc4fe17f71f2384f0f930358049323916d018 100644 (file)
 #include "x264.h"
 #include "cpu.h"
 
-/* XXX
-   No nasm on OS X / Intel yet */
-#if defined(ARCH_X86) && defined(SYS_MACOSX)
-#undef ARCH_X86
-#endif
-
 #if defined(ARCH_X86) || defined(ARCH_X86_64)
 extern int  x264_cpu_cpuid_test( void );
 extern uint32_t  x264_cpu_cpuid( uint32_t op, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx );
index 0ad97fa290b756a3dc5cec9680465e6b2805bf1f..2c8d65368389191a72a592825e471606d185486b 100755 (executable)
--- a/configure
+++ b/configure
@@ -116,10 +116,10 @@ UNAMEM="`uname -m`"
 case "$UNAMEM" in
   i386|i486|i586|i686|BePC)
     ARCH="X86"
-    if [ $SYS != MACOSX ]
+    CFLAGS="$CFLAGS -DHAVE_MMXEXT -DHAVE_SSE2"
+    if [ $SYS = MACOSX ]
     then
-      # No optims on OS X / Intel yet because of nasm limitations
-      CFLAGS="$CFLAGS -DHAVE_MMXEXT -DHAVE_SSE2"
+      ASFLAGS="-f macho -DPREFIX"
     fi
     ;;
   x86_64)