~hp/patches

Hanspeter Portner: 1
 Fix build with clang

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.open-music-kontrollers.ch/~hp/patches/patches/3/mbox | git am -3
Learn more about email & git

[PATCH] Fix build with clang Export this patch

From: MikaelUrankar <mikael.urankar@gmail.com>

---
 mapper.lv2/mapper.lv2/mum.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mapper.lv2/mapper.lv2/mum.h b/mapper.lv2/mapper.lv2/mum.h
index afe23a1f..cc7b1a93 100644
--- a/mapper.lv2/mapper.lv2/mum.h
+++ b/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);
reported by <https://github.com/MikaelUrankar>

migrated from <https://github.com/OpenMusicKontrollers/synthpod/pull/54>