aboutsummaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2020-02-17 20:26:39 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2020-02-17 20:26:39 +0000
commit80d97950f972a50253c56f3eaaa8409ac314f0f1 (patch)
tree371b2fe769e16623640e7cb6e417603beaa24631 /science
parent232c78b44637773d21d5e15d50911e1b37d0dd89 (diff)
downloadports-80d97950f972a50253c56f3eaaa8409ac314f0f1.tar.gz
ports-80d97950f972a50253c56f3eaaa8409ac314f0f1.zip
Notes
Diffstat (limited to 'science')
-rw-r--r--science/mbdyn/files/patch-libraries_libmbwrap_wraptest.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/science/mbdyn/files/patch-libraries_libmbwrap_wraptest.cc b/science/mbdyn/files/patch-libraries_libmbwrap_wraptest.cc
new file mode 100644
index 000000000000..3e23761b2b55
--- /dev/null
+++ b/science/mbdyn/files/patch-libraries_libmbwrap_wraptest.cc
@@ -0,0 +1,13 @@
+--- libraries/libmbwrap/wraptest.cc.orig 2020-02-17 19:20:23 UTC
++++ libraries/libmbwrap/wraptest.cc
+@@ -321,9 +321,7 @@ static inline unsigned long long rd_CPU_ts(void)
+ "\tbne 0b \n"
+ : "=r"(upper),"=r"(lower),"=r"(tmp)
+ );
+- time = upper;
+- time = result << 32;
+- time = result|lower;
++ time = (upper << 32) | lower;
+ #endif
+ return time;
+ }