void-packages/srcpkgs/ol/patches/ppcxx.patch

16 lines
492 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

diff --git a/extensions/ffi.c b/extensions/ffi.c
index c6a16d79..02e5c268 100644
--- a/extensions/ffi.c
+++ b/extensions/ffi.c
@@ -2670,9 +2670,9 @@ word* OLVM_ffi(olvm_t* this, word arguments)
j = l;
}
else { // в регистр с плавающей запятой
+#if (__x86_64__ && (__unix__ || __APPLE__))
// move from ptr to the ad
*(int64_t*)&ad[d++] = args[j];
-#if (__x86_64__ && (__unix__ || __APPLE__))
fpmask |= 1;
#endif
}