aboutsummaryrefslogtreecommitdiffstats
path: root/testing/elektra/remove-unneeded-assembly.patch
blob: f9968b67fd844b88cccb478808da3743997f30c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff -ru libelektra-0.8.21.orig/tests/ctest/test_meta.c libelektra-0.8.21/tests/ctest/test_meta.c
--- libelektra-0.8.21.orig/tests/ctest/test_meta.c	2017-12-22 09:33:22.000000000 +0200
+++ libelektra-0.8.21/tests/ctest/test_meta.c	2018-02-07 17:07:39.065186200 +0200
@@ -339,12 +339,6 @@
 	succeed_if_top (2, "/c");
 	succeed_if_top (3, "/a");
 }
-uint64_t rdtsc (void)
-{
-	unsigned int lo, hi;
-	__asm__ __volatile__("rdtsc" : "=a"(lo), "=d"(hi));
-	return ((uint64_t)hi << 32) | lo;
-}
 static void test_top (void)
 {
 	KeySet * test0 = ksNew (10, keyNew ("/a", KEY_VALUE, "whatever", KEY_END), KS_END);