diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-02-17 20:26:39 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-02-17 20:26:39 +0000 |
commit | 80d97950f972a50253c56f3eaaa8409ac314f0f1 (patch) | |
tree | 371b2fe769e16623640e7cb6e417603beaa24631 /science | |
parent | 232c78b44637773d21d5e15d50911e1b37d0dd89 (diff) | |
download | ports-80d97950f972a50253c56f3eaaa8409ac314f0f1.tar.gz ports-80d97950f972a50253c56f3eaaa8409ac314f0f1.zip |
Notes
Diffstat (limited to 'science')
-rw-r--r-- | science/mbdyn/files/patch-libraries_libmbwrap_wraptest.cc | 13 |
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; + } |