summaryrefslogtreecommitdiff
path: root/science/mbdyn/files/patch-libraries_libmbwrap_wraptest.cc
blob: 3e23761b2b556982bb243b944fd94a76a8f9e7f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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;
 }