svn commit: r541221 - head/audio/synthpod-lv2/files
Mikael Urankar
mikael at FreeBSD.org
Sat Jul 4 15:47:22 UTC 2020
Author: mikael
Date: Sat Jul 4 15:47:21 2020
New Revision: 541221
URL: https://svnweb.freebsd.org/changeset/ports/541221
Log:
audio/synthpod-lv2: fix build on aarch64
../mapper.lv2/mapper.lv2/mum.h:113:3: warning: implicit declaration of function 'asm' is invalid in C99 [-Wimplicit-function-declaration]
asm ("umulh %0, %1, %2" : "=r" (hi) : "r" (v), "r" (p));
^
../mapper.lv2/mapper.lv2/mum.h:113:27: error: expected ')'
asm ("umulh %0, %1, %2" : "=r" (hi) : "r" (v), "r" (p));
^
../mapper.lv2/mapper.lv2/mum.h:113:7: note: to match this '('
asm ("umulh %0, %1, %2" : "=r" (hi) : "r" (v), "r" (p));
reported upstream: https://github.com/OpenMusicKontrollers/synthpod/pull/54
Approved by: portmgr (tier-2 blanket)
Added:
head/audio/synthpod-lv2/files/
head/audio/synthpod-lv2/files/patch-mapper.lv2_mapper.lv2_mum.h (contents, props changed)
Added: head/audio/synthpod-lv2/files/patch-mapper.lv2_mapper.lv2_mum.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/audio/synthpod-lv2/files/patch-mapper.lv2_mapper.lv2_mum.h Sat Jul 4 15:47:21 2020 (r541221)
@@ -0,0 +1,11 @@
+--- mapper.lv2/mapper.lv2/mum.h.orig 2020-07-04 11:56:10 UTC
++++ mapper.lv2/mapper.lv2/mum.h
+@@ -110,7 +110,7 @@ _mum (uint64_t v, uint64_t p) {
+ function doing 128x128->128 bit multiplication. The function is
+ very slow. */
+ lo = v * p, hi;
+- asm ("umulh %0, %1, %2" : "=r" (hi) : "r" (v), "r" (p));
++ __asm__ ("umulh %0, %1, %2" : "=r" (hi) : "r" (v), "r" (p));
+ #else
+ __uint128_t r = (__uint128_t) v * (__uint128_t) p;
+ hi = (uint64_t) (r >> 64);
More information about the svn-ports-all
mailing list