[Mesa-dev] [PATCH 2/5] swr: remove support for GCC older than 4.8

Timothy Arceri timothy.arceri at collabora.com
Wed Sep 7 04:28:17 UTC 2016


---
 src/gallium/drivers/swr/rasterizer/common/os.h | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h
index 43d5513..0a8d3a9 100644
--- a/src/gallium/drivers/swr/rasterizer/common/os.h
+++ b/src/gallium/drivers/swr/rasterizer/common/os.h
@@ -131,20 +131,6 @@ typedef unsigned int    DWORD;
 
 #endif
 
-#define GCC_VERSION (__GNUC__ * 10000 \
-                     + __GNUC_MINOR__ * 100 \
-                     + __GNUC_PATCHLEVEL__)
-
-#if !defined(__clang__) && (__GNUC__) && (GCC_VERSION < 40500)
-inline
-uint64_t __rdtsc()
-{
-    long low, high;
-    asm volatile("rdtsc" : "=a"(low), "=d"(high));
-    return (low | ((uint64_t)high << 32));
-}
-#endif
-
 #if !defined( __clang__) && !defined(__INTEL_COMPILER)
 // Intrinsic not defined in gcc
 static INLINE
-- 
2.7.4



More information about the mesa-dev mailing list