mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
vba-m: update to 2.1.5.
This commit is contained in:
parent
6e1a22a532
commit
906ab93ad8
2 changed files with 4 additions and 41 deletions
|
@ -1,37 +0,0 @@
|
|||
From af0de1c4b308ef8d9a081ecf407805b75a99d877 Mon Sep 17 00:00:00 2001
|
||||
From: Rafael Kitover <rkitover@gmail.com>
|
||||
Date: Fri, 4 Oct 2019 07:35:49 +0000
|
||||
Subject: [PATCH] xbrz: fix inline asm check
|
||||
|
||||
Use correct cpp code to detect x86/amd64 architecture to use inline asm.
|
||||
|
||||
Signed-off-by: Rafael Kitover <rkitover@gmail.com>
|
||||
---
|
||||
src/filters/xBRZ/xbrz.cpp | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git src/filters/xBRZ/xbrz.cpp src/filters/xBRZ/xbrz.cpp
|
||||
index 36d70be26..13e6cdc13 100644
|
||||
--- a/src/filters/xBRZ/xbrz.cpp
|
||||
+++ b/src/filters/xBRZ/xbrz.cpp
|
||||
@@ -66,17 +66,17 @@ uint32_t gradientARGB(uint32_t pixFront, uint32_t pixBack) //find intermediate c
|
||||
|
||||
inline double fastSqrt(double n)
|
||||
{
|
||||
-#ifdef __GNUC__ || __clang__ || __MINGW64_VERSION_MAJOR || __MINGW32_MAJOR_VERSION
|
||||
+#if (defined(__GNUC__) || defined(__clang__)) && (defined(__x86_64__) || defined(__i386__))
|
||||
__asm__ ("fsqrt" : "+t" (n));
|
||||
return n;
|
||||
-#elif _MSC_VER && _M_IX86
|
||||
+#elif defined(_MSC_VER) && defined(_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
|
||||
+#else // defined(_MSC_VER) && defined(_M_X64) OR other platforms
|
||||
// VisualStudio x86_64 does not allow inline ASM
|
||||
return std::sqrt(n);
|
||||
#endif
|
|
@ -1,10 +1,10 @@
|
|||
# Template file for 'vba-m'
|
||||
pkgname=vba-m
|
||||
reverts=1292_2
|
||||
version=2.1.4
|
||||
revision=4
|
||||
version=2.1.5
|
||||
revision=1
|
||||
build_style=cmake
|
||||
configure_args="-DENABLE_GTK=TRUE -DENABLE_FFMPEG=TRUE -DENABLE_LINK=TRUE"
|
||||
configure_args="-DENABLE_GTK=TRUE -DENABLE_FFMPEG=TRUE -DENABLE_LINK=TRUE -DCMAKE_BUILD_TYPE=Release"
|
||||
hostmakedepends="gettext pkg-config unzip zip yasm wxWidgets-gtk3-devel"
|
||||
makedepends="zlib-devel libpng-devel MesaLib-devel libopenal-devel SDL2-devel
|
||||
gtkmm2-devel ffmpeg-devel gtk+3-devel
|
||||
|
@ -14,4 +14,4 @@ maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|||
license="GPL-2.0-or-later"
|
||||
homepage="https://github.com/visualboyadvance-m/visualboyadvance-m/"
|
||||
distfiles="https://github.com/visualboyadvance-m/visualboyadvance-m/archive/v${version}.tar.gz"
|
||||
checksum=8342e017212842de66b0d86bc7610c82349af2d4e59951d969a33fff956c39ba
|
||||
checksum=5ece12815f0a6d2ee70ebcdbc072bb0885184e3c89332c2bdeba03c779a2329a
|
||||
|
|
Loading…
Add table
Reference in a new issue