pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/visualboyadvance-m visualboyadvance-m: remov...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cfcfec7d099d
branches:  trunk
changeset: 452906:cfcfec7d099d
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu May 20 06:45:07 2021 +0000

description:
visualboyadvance-m: remove broken ASM checks

diffstat:

 emulators/visualboyadvance-m/distinfo                                |   3 +-
 emulators/visualboyadvance-m/patches/patch-src_filters_xBRZ_xbrz.cpp |  27 ++++++++++
 2 files changed, 29 insertions(+), 1 deletions(-)

diffs (43 lines):

diff -r fd0b4248af61 -r cfcfec7d099d emulators/visualboyadvance-m/distinfo
--- a/emulators/visualboyadvance-m/distinfo     Thu May 20 06:32:40 2021 +0000
+++ b/emulators/visualboyadvance-m/distinfo     Thu May 20 06:45:07 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2020/06/14 07:45:49 ryoon Exp $
+$NetBSD: distinfo,v 1.2 2021/05/20 06:45:07 nia Exp $
 
 SHA1 (visualboyadvance-m-2.1.4.tar.gz) = bf6e452b53f47e2fbc4e6e41c92f567aa285cdbe
 RMD160 (visualboyadvance-m-2.1.4.tar.gz) = 21193576c07516d615379d7b5ecfb9e2a5c72c5b
 SHA512 (visualboyadvance-m-2.1.4.tar.gz) = 9070715797c6be1648661019f236eb9328eb409f52e80e15aac52d814cf4155cf1ea37c230557c1288f152f0d27d838b11bee38679787a8d5198ca81f173d896
 Size (visualboyadvance-m-2.1.4.tar.gz) = 3891574 bytes
+SHA1 (patch-src_filters_xBRZ_xbrz.cpp) = fcd461305ee5b88df27291a2f3fffbeeb1a25f13
diff -r fd0b4248af61 -r cfcfec7d099d emulators/visualboyadvance-m/patches/patch-src_filters_xBRZ_xbrz.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/visualboyadvance-m/patches/patch-src_filters_xBRZ_xbrz.cpp      Thu May 20 06:45:07 2021 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-src_filters_xBRZ_xbrz.cpp,v 1.1 2021/05/20 06:45:07 nia Exp $
+
+Remove broken ASM checks.
+
+--- src/filters/xBRZ/xbrz.cpp.orig     2019-10-02 14:17:30.000000000 +0000
++++ src/filters/xBRZ/xbrz.cpp
+@@ -66,20 +66,7 @@ uint32_t gradientARGB(uint32_t pixFront,
+ 
+ inline double fastSqrt(double n)
+ {
+-#ifdef __GNUC__ || __clang__ || __MINGW64_VERSION_MAJOR || __MINGW32_MAJOR_VERSION
+-    __asm__ ("fsqrt" : "+t" (n));
+-    return n;
+-#elif _MSC_VER && _M_IX86
+-    // speeds up xBRZ by about 9% compared to std::sqrt which internally uses
+-    // the same assembler instructions but adds some "fluff"
+-    __asm {
+-        fld n
+-        fsqrt
+-    }
+-#else // _MSC_VER && _M_X64 OR other platforms
+-    // VisualStudio x86_64 does not allow inline ASM
+     return std::sqrt(n);
+-#endif
+ }
+ 
+ 



Home | Main Index | Thread Index | Old Index