mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Fix the damn conflict
This commit is contained in:
parent
34fb5b8946
commit
3b891733fd
1 changed files with 6 additions and 2 deletions
|
|
@ -26,22 +26,26 @@
|
|||
#ifndef AVUTIL_TIMER_H
|
||||
#define AVUTIL_TIMER_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "config.h"
|
||||
|
||||
#if HAVE_INLINE_ASM
|
||||
|
||||
#if ARCH_LOONGARCH64
|
||||
|
||||
#define AV_READ_TIME read_time
|
||||
|
||||
static inline uint64_t read_time(void)
|
||||
{
|
||||
|
||||
#if ARCH_LOONGARCH64
|
||||
uint64_t a, id;
|
||||
__asm__ volatile ( "rdtime.d %0, %1" : "=r"(a), "=r"(id) :: );
|
||||
return a;
|
||||
}
|
||||
#else
|
||||
#define START_TIMER
|
||||
#define STOP_TIMER(id) { }
|
||||
#endif
|
||||
|
||||
#endif /* HAVE_INLINE_ASM */
|
||||
|
||||
#endif /* AVUTIL_TIMER_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue