mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 20:42:49 +08:00 
			
		
		
		
	Merge commit 'd1a6cb195f610978ba5d2351e60f938f7f261d59'
* commit 'd1a6cb195f610978ba5d2351e60f938f7f261d59': x86: Serialize rdtsc in read_time() Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		| @@ -31,7 +31,12 @@ | |||||||
| static inline uint64_t read_time(void) | static inline uint64_t read_time(void) | ||||||
| { | { | ||||||
|     uint32_t a, d; |     uint32_t a, d; | ||||||
|     __asm__ volatile("rdtsc" : "=a" (a), "=d" (d)); |     __asm__ volatile( | ||||||
|  | #if ARCH_X86_64 || defined(__SSE2__) | ||||||
|  |                      "lfence \n\t" | ||||||
|  | #endif | ||||||
|  |                      "rdtsc  \n\t" | ||||||
|  |                      : "=a" (a), "=d" (d)); | ||||||
|     return ((uint64_t)d << 32) + a; |     return ((uint64_t)d << 32) + a; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Michael Niedermayer
					Michael Niedermayer