mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
math/sprng: fix build on armv7
Fix inline assembly that doesn't work with clang or recent C++ standards. Approved by: portmgr (build fix blanket) MFH: 2024Q4
This commit is contained in:
parent
5462803810
commit
002e304768
1 changed files with 15 additions and 0 deletions
15
math/sprng/files/patch-SRC_pmlcg_longlong.h
Normal file
15
math/sprng/files/patch-SRC_pmlcg_longlong.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
--- SRC/pmlcg/longlong.h.orig 2024-12-17 18:25:17 UTC
|
||||
+++ SRC/pmlcg/longlong.h
|
||||
@@ -211,9 +211,8 @@ UDItype __umulsidi3 (USItype, USItype);
|
||||
"r" ((USItype) (al)), \
|
||||
"rI" ((USItype) (bl)))
|
||||
#define umul_ppmm(xh, xl, a, b) \
|
||||
-{register USItype __t0, __t1, __t2; \
|
||||
- __asm__ ("%@ Inlined umul_ppmm\n" \
|
||||
- " mov %2, %5, lsr #16\n" \
|
||||
+{USItype __t0, __t1, __t2; \
|
||||
+ __asm__ (" mov %2, %5, lsr #16\n" \
|
||||
" mov %0, %6, lsr #16\n" \
|
||||
" bic %3, %5, %2, lsl #16\n" \
|
||||
" bic %4, %6, %0, lsl #16\n" \
|
||||
|
Loading…
Add table
Reference in a new issue