Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jan 2016 23:37:21 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r407068 - head/games/libretro-cores/files
Message-ID:  <201601232337.u0NNbLgY002402@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim (src committer)
Date: Sat Jan 23 23:37:21 2016
New Revision: 407068
URL: https://svnweb.freebsd.org/changeset/ports/407068

Log:
  In the copy of mednafen included in libretro-cores, replace a named
  label in inline assembly in an inline function with a local label.
  This prevents "invalid symbol redefinition" errors when the function is
  inlined multiple times, for example within an unrolled loop.
  
  Approved by:	yuri@rawbw.com (maintainer)
  PR:		206542

Added:
  head/games/libretro-cores/files/patch-beetle-pcfx-libretro-mednafen-sound-OwlResampler.cpp   (contents, props changed)

Added: head/games/libretro-cores/files/patch-beetle-pcfx-libretro-mednafen-sound-OwlResampler.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/libretro-cores/files/patch-beetle-pcfx-libretro-mednafen-sound-OwlResampler.cpp	Sat Jan 23 23:37:21 2016	(r407068)
@@ -0,0 +1,38 @@
+--- beetle-pcfx-libretro/mednafen/sound/OwlResampler.cpp.orig	2015-10-16 02:50:34.000000000 +0200
++++ beetle-pcfx-libretro/mednafen/sound/OwlResampler.cpp	2016-01-23 21:47:18.614641000 +0100
+@@ -346,7 +346,7 @@ static INLINE void DoMAC_SSE(float *wave
+ "movups  0(%%" X86_REGC "di), %%xmm0\n\t"
+ "movups 16(%%" X86_REGC "di), %%xmm1\n\t"
+ 
+-"SSE_Loop:\n\t"
++"1:\n\t"
+ 
+ "movups 32(%%" X86_REGC "di), %%xmm2\n\t"
+ "mulps   0(%%" X86_REGC "si), %%xmm0\n\t"
+@@ -384,7 +384,7 @@ static INLINE void DoMAC_SSE(float *wave
+ "add" X86_REGAT " $128, %%" X86_REGC "si\n\t"
+ "add" X86_REGAT " $128, %%" X86_REGC "di\n\t"
+ "subl $1, %%ecx\n\t"
+-"jnz SSE_Loop\n\t"
++"jnz 1b\n\t"
+ 
+ "addps  %%xmm3, %%xmm7\n\t"	// For a loop optimization
+ 
+@@ -451,7 +451,7 @@ static INLINE void DoMAC_SSE(float *wave
+ "xorps %%xmm7, %%xmm7\n\t"
+ 
+ "movups  0(%%" X86_REGC "di), %%xmm0\n\t"
+-"SSE_Loop:\n\t"
++"1:\n\t"
+ 
+ "movups 16(%%" X86_REGC "di), %%xmm1\n\t"
+ "mulps   0(%%" X86_REGC "si), %%xmm0\n\t"
+@@ -472,7 +472,7 @@ static INLINE void DoMAC_SSE(float *wave
+ "add" X86_REGAT " $64, %%" X86_REGC "si\n\t"
+ "add" X86_REGAT " $64, %%" X86_REGC "di\n\t"
+ "subl $1, %%ecx\n\t"
+-"jnz SSE_Loop\n\t"
++"jnz 1b\n\t"
+ 
+ "addps  %%xmm3, %%xmm7\n\t"	// For a loop optimization
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601232337.u0NNbLgY002402>